git.iko.soy/typeable/pandoc
on 1.19.2.1 help sign in
typeable/pandoc/appveyor.yml
54 lines 1.8 kB history raw
1clone_folder: "c:\\stack"
2environment:
3 global:
4 STACK_ROOT: "c:\\sr"
5 STACK_YAML: "c:\\stack\\windows\\stack.yaml"
6 WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
8cache:
9 - "c:\\sr" # stack root, short paths == fewer problems
10 - "c:\\stack\\stack.exe"
11 - '%WIXBIN%'
13# We don't do a normal C build, but build in test_script via stack
14build: off
16install:
17 - '"%WIXBIN%"\candle -? || choco install wixtoolset'
18 - |
19 stack --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe
20 - stack setup > nul
22before_test:
23 # the stack install already fails without the templates...
24 - git submodule update --init
25 # set PATH to where the hsb2hs binary is copied to
26 - cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
27 - stack install hsb2hs
29test_script:
30 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
31 # descriptor
32 - echo "" | stack clean
33 - echo "" | stack --no-terminal test
34 - echo "" | stack --local-bin-path . install pandoc pandoc-citeproc
36after_test:
37 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
38 - cd windows
39 - 7z a "pandoc.zip" pandoc.exe
40 - .\pandoc.exe -s -S --toc ..\MANUAL.txt -o MANUAL.html
41 - .\pandoc.exe -s -S ..\COPYING.md -o COPYING.rtf
42 - copy ..\COPYRIGHT COPYRIGHT.txt
43 - |
44 set VERSION=
45 for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
46 echo %VERSION%
47 "%WIXBIN%\\candle" -dVERSION=%VERSION% -dBINPATH=. *.wxs -out wixobj\
48 "%WIXBIN%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc.msi wixobj\*.wixobj
50artifacts:
51 - path: windows\pandoc.zip
52 name: exe
53 - path: windows\pandoc.msi
54 name: msi