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