2016-05-10 23:44:05 +02:00
|
|
|
clone_folder: "c:\\stack"
|
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
STACK_ROOT: "c:\\sr"
|
2017-02-12 22:04:53 +01:00
|
|
|
STACK_YAML: "c:\\stack\\stack.pkg.yaml"
|
2016-06-03 07:11:20 +02:00
|
|
|
WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
|
2017-05-15 19:27:15 +02:00
|
|
|
EDITBIN: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin"
|
2015-09-27 03:04:50 +02:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
cache:
|
|
|
|
- "c:\\sr" # stack root, short paths == fewer problems
|
2016-06-03 22:41:48 +02:00
|
|
|
- "c:\\stack\\stack.exe"
|
2016-06-03 07:11:20 +02:00
|
|
|
- '%WIXBIN%'
|
2016-05-12 20:48:40 +02:00
|
|
|
|
2016-05-13 00:43:15 +02:00
|
|
|
# We don't do a normal C build, but build in test_script via stack
|
2016-06-03 21:37:54 +02:00
|
|
|
build: off
|
2015-04-27 02:57:24 +02:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
install:
|
2016-06-03 22:15:34 +02:00
|
|
|
- '"%WIXBIN%"\candle -? || choco install wixtoolset'
|
2016-06-03 22:41:48 +02:00
|
|
|
- |
|
|
|
|
stack --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe
|
2016-05-10 23:44:05 +02:00
|
|
|
- stack setup > nul
|
|
|
|
|
2016-03-07 18:16:39 +01:00
|
|
|
before_test:
|
2016-05-10 23:44:05 +02:00
|
|
|
# the stack install already fails without the templates...
|
|
|
|
- git submodule update --init
|
2015-04-26 20:37:37 +02:00
|
|
|
|
|
|
|
test_script:
|
2016-05-10 23:44:05 +02:00
|
|
|
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
|
|
|
|
# descriptor
|
2016-06-03 22:25:56 +02:00
|
|
|
- echo "" | stack clean
|
2017-02-12 22:34:07 +01:00
|
|
|
- echo "" | stack -j1 --no-terminal test
|
2017-02-12 23:17:35 +01:00
|
|
|
- echo "" | stack -j1 --local-bin-path=.\windows install pandoc pandoc-citeproc
|
2016-05-10 11:28:33 +02:00
|
|
|
|
|
|
|
after_test:
|
2016-05-13 00:43:15 +02:00
|
|
|
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
|
2016-06-03 01:55:46 +02:00
|
|
|
- cd windows
|
2017-05-15 17:42:10 +02:00
|
|
|
# allow use of > 2GB memory
|
|
|
|
# see https://jonathanchang.org/blog/fixing-pandoc-out-of-memory-errors-on-windows/
|
2017-05-15 19:35:46 +02:00
|
|
|
- '"%EDITBIN%"\editbin /LARGEADDRESSAWARE "pandoc.exe"'
|
2017-05-15 19:50:37 +02:00
|
|
|
- '"%EDITBIN%"\editbin /LARGEADDRESSAWARE "pandoc-citeproc.exe"'
|
2017-01-30 11:49:25 +01:00
|
|
|
- .\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html
|
|
|
|
- .\pandoc.exe -s ..\COPYING.md -o COPYING.rtf
|
2016-06-03 06:12:55 +02:00
|
|
|
- copy ..\COPYRIGHT COPYRIGHT.txt
|
2017-05-15 17:42:10 +02:00
|
|
|
- 7z a "pandoc.zip" pandoc.exe pandoc-citeproc.exe MANUAL.html COPYING.rtf
|
2016-06-03 19:30:06 +02:00
|
|
|
- |
|
2016-06-03 19:49:30 +02:00
|
|
|
set VERSION=
|
2016-06-03 20:31:09 +02:00
|
|
|
for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( if not defined VERSION set "VERSION=%%b" )
|
2016-06-03 19:49:30 +02:00
|
|
|
echo %VERSION%
|
2016-06-04 20:38:38 +02:00
|
|
|
"%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
|
2016-05-10 11:28:33 +02:00
|
|
|
|
|
|
|
artifacts:
|
2016-06-03 01:55:46 +02:00
|
|
|
- path: windows\pandoc.zip
|
2016-05-10 11:28:33 +02:00
|
|
|
name: exe
|
2016-06-03 21:37:54 +02:00
|
|
|
- path: windows\pandoc.msi
|
2016-06-03 01:55:46 +02:00
|
|
|
name: msi
|