2016-05-10 23:44:05 +02:00
|
|
|
clone_folder: "c:\\stack"
|
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
STACK_ROOT: "c:\\sr"
|
2016-06-03 22:41:48 +02:00
|
|
|
STACK_YAML: "c:\\stack\\windows\\stack.yaml"
|
2016-06-03 07:11:20 +02:00
|
|
|
WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
|
2015-09-27 03:04:50 +02:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
cache:
|
|
|
|
- "c:\\sr" # stack root, short paths == fewer problems
|
2016-06-03 22:41:48 +02:00
|
|
|
- "c:\\stack\\stack.exe"
|
2016-06-03 07:11:20 +02:00
|
|
|
- '%WIXBIN%'
|
2016-05-12 20:48:40 +02:00
|
|
|
|
2016-05-13 00:43:15 +02:00
|
|
|
# We don't do a normal C build, but build in test_script via stack
|
2016-06-03 21:37:54 +02:00
|
|
|
build: off
|
2015-04-27 02:57:24 +02:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
install:
|
2016-06-03 22:15:34 +02:00
|
|
|
- '"%WIXBIN%"\candle -? || choco install wixtoolset'
|
2016-06-03 22:41:48 +02:00
|
|
|
- |
|
|
|
|
stack --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe
|
2016-05-10 23:44:05 +02:00
|
|
|
- stack setup > nul
|
|
|
|
|
2016-03-07 18:16:39 +01:00
|
|
|
before_test:
|
2016-05-10 23:44:05 +02:00
|
|
|
# the stack install already fails without the templates...
|
|
|
|
- git submodule update --init
|
|
|
|
# set PATH to where the hsb2hs binary is copied to
|
|
|
|
- cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
|
|
|
|
- stack install hsb2hs
|
2015-04-26 20:37:37 +02:00
|
|
|
|
|
|
|
test_script:
|
2016-05-10 23:44:05 +02:00
|
|
|
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
|
|
|
|
# descriptor
|
2016-06-03 22:25:56 +02:00
|
|
|
- echo "" | stack clean
|
2016-05-13 00:43:15 +02:00
|
|
|
- echo "" | stack --no-terminal test
|
2016-06-03 21:06:25 +02:00
|
|
|
- echo "" | stack --local-bin-path . install pandoc pandoc-citeproc
|
2016-05-10 11:28:33 +02:00
|
|
|
|
|
|
|
after_test:
|
2016-05-13 00:43:15 +02:00
|
|
|
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
|
2016-06-03 01:55:46 +02:00
|
|
|
- cd windows
|
2016-06-03 21:37:54 +02:00
|
|
|
- 7z a "pandoc.zip" pandoc.exe
|
2016-06-27 02:24:15 +02:00
|
|
|
- .\pandoc.exe -s -S --toc ..\README -o README.html
|
2016-06-03 06:12:55 +02:00
|
|
|
- .\pandoc.exe -s -S ..\COPYING -o COPYING.rtf
|
|
|
|
- copy ..\COPYRIGHT COPYRIGHT.txt
|
2016-06-03 19:30:06 +02:00
|
|
|
- |
|
2016-06-03 19:49:30 +02:00
|
|
|
set VERSION=
|
2016-06-03 20:31:09 +02:00
|
|
|
for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
|
2016-06-03 19:49:30 +02:00
|
|
|
echo %VERSION%
|
2016-06-04 20:38:38 +02:00
|
|
|
"%WIXBIN%\\candle" -dVERSION=%VERSION% -dBINPATH=. *.wxs -out wixobj\
|
|
|
|
"%WIXBIN%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc.msi wixobj\*.wixobj
|
2016-05-10 11:28:33 +02:00
|
|
|
|
|
|
|
artifacts:
|
2016-06-03 01:55:46 +02:00
|
|
|
- path: windows\pandoc.zip
|
2016-05-10 11:28:33 +02:00
|
|
|
name: exe
|
2016-06-03 21:37:54 +02:00
|
|
|
- path: windows\pandoc.msi
|
2016-06-03 01:55:46 +02:00
|
|
|
name: msi
|