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