git.iko.soy/typeable/pandoc
on 2.0.5 help sign in
typeable/pandoc/appveyor.yml
80 lines 2.5 kB history raw
1clone_folder: "c:\\pandoc"
2environment:
3 global:
4 WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.11\\bin"
5 STACK_YAML: "c:\\pandoc\\stack.pkg.yaml"
6 STACK_BUILD_OPTS: "-j1 --no-terminal --test --local-bin-path=.\\windows"
7 matrix:
8 - STACK_VERSION: "windows-i386"
9 STACK_ROOT: "c:\\sr32"
10 STACK: "%STACK_ROOT%\\stack.exe"
11 STACK_FLAGS: "--flag=hslua:lua_32bits"
12# - STACK_VERSION: "windows-x86_64"
13# STACK_ROOT: "c:\\sr64"
14# STACK: "%STACK_ROOT%\\stack.exe"
15# STACK_FLAGS: ""
17skip_commits:
18 files:
19 - '*.md'
20 - '*.txt'
21 - '.travis.yml'
22 - 'Makefile'
23 - 'man/pandoc.1'
24 - 'linux/*'
25 - 'macos/*'
27matrix:
28 fast_finish: true
30cache:
31 - "%STACK_ROOT%"
32 - "%WIXBIN%"
33 # This is where stack install ghc by default, but we don't
34 # cache it because it's too large:
35 # - "c:\\Users\\appveyor\\AppData\\Local\\Programs\\stack"
37# Note: to reset build cache, do the following in JavaScript
38# console on appveyor:
39# $.ajax({
40# url: 'https://ci.appveyor.com/api/projects/jgm/pandoc/buildcache',
41# type: 'DELETE'})
43# We don't do a normal C build, but build in test_script via stack
44build: off
46install:
47 - '"%WIXBIN%"\candle -? || choco install wixtoolset'
48 - |
49 %STACK% --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z e stack.zip -o"%STACK_ROOT%" stack.exe
51# before_test:
53test_script:
54 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
55 # descriptor
56 - |
57 %STACK% setup > nul
58 %STACK% path
59 echo "" | %STACK% clean
60 echo "" | %STACK% %STACK_BUILD_OPTS% install pandoc pandoc-citeproc %STACK_FLAGS%
62after_test:
63 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
64 - cd windows
65 - .\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html
66 - .\pandoc.exe -s ..\COPYING.md -o COPYING.rtf
67 - copy ..\COPYRIGHT COPYRIGHT.txt
68 - 7z a "pandoc-%STACK_VERSION%.zip" pandoc.exe pandoc-citeproc.exe MANUAL.html COPYING.rtf
69 - |
70 set VERSION=
71 for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
72 echo %VERSION%
73 "%WIXBIN%\\candle" -dVERSION=%VERSION% -dBINPATH=. *.wxs -out wixobj\
74 "%WIXBIN%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out "pandoc-%STACK_VERSION%.msi" wixobj\*.wixobj
76artifacts:
77 - path: 'windows\pandoc-%STACK_VERSION%.zip'
78 name: exe
79 - path: 'windows\pandoc-%STACK_VERSION%.msi'
80 name: msi