git.iko.soy/typeable/pandoc
on 2.4 help sign in
typeable/pandoc/appveyor.yml
95 lines 3.5 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 CABAL_STORE: "C:\\cs"
7 CABAL_PACKAGE_DB: "%CABAL_STORE%\\ghc-%GHC_MINOR_VERSION%\\package.db"
8 # Override the temp directory to avoid sed escaping issues
9 # See https://github.com/haskell/cabal/issues/5386
10 TMP: "c:\\tmp"
11 # see #4201, https://github.com/haskell-tools/haskell-tools/issues/277
12 matrix:
13 - OSARCH: "windows-x86_64"
14 GHC_VERSION: "8.6.1.1"
15 GHC_MINOR_VERSION: "8.6.1"
16 GHC: "C:\\ProgramData\\chocolatey\\lib\\ghc\\tools\\ghc-%GHC_MINOR_VERSION%\\bin\\ghc.exe"
17 CABAL_VERSION: "2.4.0.0"
18 CABAL_OPTS: "-fembed_data_files -fbibutils --verbose=2"
19 GHC_OPTS: "-fhide-source-paths"
20 ARCH: "x64"
21 CHOCO_OPTS: ""
22 - OSARCH: "windows-i386"
23 GHC_VERSION: "8.6.1.1"
24 GHC_MINOR_VERSION: "8.6.1"
25 GHC: "C:\\ProgramData\\chocolatey\\lib\\ghc\\tools\\ghc-%GHC_MINOR_VERSION%\\bin\\ghc.exe"
26 CABAL_VERSION: "2.4.0.0"
27 CABAL_OPTS: "-flua_32bits -fembed_data_files -fbibutils --verbose=2"
28 GHC_OPTS: "-fhide-source-paths"
29 ARCH: "x86"
30 CHOCO_OPTS: "--x86"
32skip_commits:
33 files:
34 - '*.md'
35 - '*.txt'
36 - '.travis.yml'
37 - 'Makefile'
38 - 'man/pandoc.1'
39 - 'linux/*'
40 - 'macos/*'
42matrix:
43 fast_finish: true
45cache:
46 - '%CABAL_STORE%'
48# Note: to reset build cache, do the following in JavaScript
49# console on appveyor:
50# $.ajax({ url: 'https://ci.appveyor.com/api/projects/jgm/pandoc/buildcache', type: 'DELETE'})
52# We don't do a normal C build, but build in test_script
53build: off
55install:
56 - choco install wixtoolset --version 3.11.1 %CHOCO_OPTS%
57 - choco install ghc --version %GHC_VERSION% --ignore-dependencies %CHOCO_OPTS%
58 - choco install cabal --version %CABAL_VERSION% --ignore-dependencies %CHOCO_OPTS%
60# before_test:
62test_script:
63 # Note: we manually create cabal store, because of a cabal bug:
64 # see https://github.com/haskell/cabal/issues/5516
65 - if not exist "%CABAL_PACKAGE_DB%" ( mkdir "%CABAL_PACKAGE_DB%" )
66 - cabal --store-dir="%CABAL_STORE%" --version
67 - cabal --store-dir="%CABAL_STORE%" new-update
68 - cabal --store-dir="%CABAL_STORE%" new-configure -w %GHC% --enable-tests %CABAL_OPTS% --ghc-options="%GHC_OPTS%" . pandoc-citeproc
69 - cabal --store-dir="%CABAL_STORE%" new-build . pandoc-citeproc
70 - cabal --store-dir="%CABAL_STORE%" new-test . pandoc-citeproc
71 - forfiles /P .\dist-newstyle /M pandoc*.exe /S /C "cmd /C copy @path C:\pandoc\windows"
73after_test:
74 # create msi and zip artifacts
75 - cd windows
76 - .\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html
77 - .\pandoc.exe -s ..\COPYING.md -o COPYING.rtf
78 - copy ..\COPYRIGHT COPYRIGHT.txt
79 - 7z a "pandoc-%OSARCH%.zip" pandoc.exe pandoc-citeproc.exe MANUAL.html COPYING.rtf
80 - |
81 set VERSION=
82 for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
83 echo %VERSION%
84 "%WIXBIN%"\candle -arch %ARCH% -dVERSION=%VERSION% -dBINPATH=. *.wxs -out wixobj\
85 "%WIXBIN%"\light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out "pandoc-%OSARCH%.msi" wixobj\*.wixobj
87# for debugging
88# on_finish:
89# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
91artifacts:
92 - path: 'windows\pandoc-%OSARCH%.zip'
93 name: exe
94 - path: 'windows\pandoc-%OSARCH%.msi'
95 name: msi