clone_folder: "c:\\pandoc" environment: matrix: - STACK_VERSION: "windows-i386" STACK_ROOT: "c:\\sr32" STACK: "%STACK_ROOT%\\stack.exe" WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.11\\bin" STACK_YAML: "c:\\pandoc\\stack.pkg.yaml" cache: - "%STACK_ROOT%" - "%WIXBIN%" # This is where stack install ghc by default: - "c:\\Users\\appveyor\\AppData\\Local\\Programs\\stack" # We don't do a normal C build, but build in test_script via stack build: off install: - '"%WIXBIN%"\candle -? || choco install wixtoolset' - | %STACK% --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z e stack.zip -o"%STACK_ROOT%" stack.exe # before_test: test_script: # The ugly echo "" hack is to avoid complaints about 0 being an invalid file # descriptor - | %STACK% setup > nul %STACK% path echo "" | %STACK% clean echo "" | %STACK% -j1 --no-terminal --test --local-bin-path=.\windows install pandoc pandoc-citeproc after_test: # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is) - cd windows - .\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html - .\pandoc.exe -s ..\COPYING.md -o COPYING.rtf - copy ..\COPYRIGHT COPYRIGHT.txt - 7z a "pandoc.zip" pandoc.exe pandoc-citeproc.exe MANUAL.html COPYING.rtf - | set VERSION= for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" ) echo %VERSION% "%WIXBIN%\\candle" -dVERSION=%VERSION% -dBINPATH=. *.wxs -out wixobj\ "%WIXBIN%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc.msi wixobj\*.wixobj artifacts: - path: windows\pandoc.zip name: exe - path: windows\pandoc.msi name: msi