2016-05-10 23:44:05 +02:00
|
|
|
clone_folder: "c:\\stack"
|
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
STACK_ROOT: "c:\\sr"
|
2016-06-03 13:41:48 -07:00
|
|
|
STACK_YAML: "c:\\stack\\windows\\stack.yaml"
|
2016-06-02 22:11:20 -07:00
|
|
|
WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
|
2015-09-26 18:04:50 -07:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
cache:
|
|
|
|
- "c:\\sr" # stack root, short paths == fewer problems
|
2016-06-03 13:41:48 -07:00
|
|
|
- "c:\\stack\\stack.exe"
|
2016-06-02 22:11:20 -07:00
|
|
|
- '%WIXBIN%'
|
2016-05-12 11:48:40 -07: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 12:37:54 -07:00
|
|
|
build: off
|
2015-04-26 17:57:24 -07:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
install:
|
2016-06-03 13:15:34 -07:00
|
|
|
- '"%WIXBIN%"\candle -? || choco install wixtoolset'
|
2016-06-03 13:41:48 -07: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 09:16:39 -08: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 11:37:37 -07: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 13:25:56 -07:00
|
|
|
- echo "" | stack clean
|
2016-05-13 00:43:15 +02:00
|
|
|
- echo "" | stack --no-terminal test
|
2016-06-03 12:06:25 -07: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-02 16:55:46 -07:00
|
|
|
- cd windows
|
2016-06-03 12:37:54 -07:00
|
|
|
- 7z a "pandoc.zip" pandoc.exe
|
2016-07-20 14:12:57 +02:00
|
|
|
- .\pandoc.exe -s -S --toc ..\MANUAL.txt -o MANUAL.html
|
2016-10-09 22:39:56 -07:00
|
|
|
- .\pandoc.exe -s -S ..\COPYING.md -o COPYING.rtf
|
2016-06-02 21:12:55 -07:00
|
|
|
- copy ..\COPYRIGHT COPYRIGHT.txt
|
2016-06-03 10:30:06 -07:00
|
|
|
- |
|
2016-06-03 10:49:30 -07:00
|
|
|
set VERSION=
|
2016-06-03 11:31:09 -07:00
|
|
|
for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
|
2016-06-03 10:49:30 -07:00
|
|
|
echo %VERSION%
|
2016-06-04 11:38:38 -07: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-02 16:55:46 -07:00
|
|
|
- path: windows\pandoc.zip
|
2016-05-10 11:28:33 +02:00
|
|
|
name: exe
|
2016-06-03 12:37:54 -07:00
|
|
|
- path: windows\pandoc.msi
|
2016-06-02 16:55:46 -07:00
|
|
|
name: msi
|