git.iko.soy/typeable/pandoc
on newlatex help sign in
typeable/pandoc/appveyor.yml
67 lines 2.3 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 matrix:
7 - STACK_VERSION: "windows-i386"
8 STACK_ROOT: "c:\\sr32"
9 STACK: "%STACK_ROOT%\\stack.exe"
10# - STACK_VERSION: "windows-x86_64"
11# STACK_ROOT: "c:\\sr64"
12# STACK: "%STACK_ROOT%\\stack.exe"
14matrix:
15 fast_finish: true
17cache:
18 - "%STACK_ROOT%"
19 - "%WIXBIN%"
20 # This is where stack install ghc by default, but we don't
21 # cache it because it's too large:
22 # - "c:\\Users\\appveyor\\AppData\\Local\\Programs\\stack"
24# Note: to reset build cache, do the following in JavaScript
25# console on appveyor:
26# $.ajax({
27# url: 'https://ci.appveyor.com/api/projects/jgm/pandoc/buildcache',
28# type: 'DELETE'})
30# We don't do a normal C build, but build in test_script via stack
31build: off
33install:
34 - '"%WIXBIN%"\candle -? || choco install wixtoolset'
35 - |
36 %STACK% --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z e stack.zip -o"%STACK_ROOT%" stack.exe
38# before_test:
40test_script:
41 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
42 # descriptor
43 - |
44 %STACK% setup > nul
45 %STACK% path
46 echo "" | %STACK% clean
47 echo "" | %STACK% -j1 --no-terminal --test --local-bin-path=.\windows install pandoc pandoc-citeproc
49after_test:
50 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
51 - cd windows
52 - .\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html
53 - .\pandoc.exe -s ..\COPYING.md -o COPYING.rtf
54 - copy ..\COPYRIGHT COPYRIGHT.txt
55 - 7z a "pandoc-%STACK_VERSION%.zip" pandoc.exe pandoc-citeproc.exe MANUAL.html COPYING.rtf
56 - |
57 set VERSION=
58 for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
59 echo %VERSION%
60 "%WIXBIN%\\candle" -dVERSION=%VERSION% -dBINPATH=. *.wxs -out wixobj\
61 "%WIXBIN%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out "pandoc-%STACK_VERSION%.msi" wixobj\*.wixobj
63artifacts:
64 - path: 'windows\pandoc-%STACK_VERSION%.zip'
65 name: exe
66 - path: 'windows\pandoc-%STACK_VERSION%.msi'
67 name: msi