pandoc/appveyor.yml

55 lines
1.8 KiB
YAML
Raw Normal View History

clone_folder: "c:\\stack"
environment:
global:
STACK_ROOT: "c:\\sr"
STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
2016-06-03 07:11:20 +02:00
WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
2015-09-27 03:04:50 +02:00
cache:
- "c:\\sr" # stack root, short paths == fewer problems
- '%LOCALAPPDATA%\Programs\stack' # even less to install...
2016-06-03 07:11:20 +02:00
- '%WIXBIN%'
# We don't do a normal C build, but build in test_script via stack
build: off
install:
- choco install wixtoolset
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
- stack setup > nul
2016-03-07 18:16:39 +01:00
before_test:
# the stack install already fails without the templates...
- git submodule update --init
# set PATH to where the hsb2hs binary is copied to
- cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
- stack install hsb2hs
2015-04-26 20:37:37 +02:00
test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test
- echo "" | stack --local-bin-path . install pandoc
2016-05-10 11:28:33 +02:00
after_test:
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
- cd windows
- 7z a "pandoc.zip" pandoc.exe"
- .\pandoc.exe -s -S ..\README -o README.html
- .\pandoc.exe -s -S ..\COPYING -o COPYING.rtf
- copy ..\COPYRIGHT COPYRIGHT.txt
2016-06-03 07:09:25 +02:00
- set "WIXPATH=C:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
- |
for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( set VERSION=%%b && exit )
- echo %VERSION%
2016-06-03 07:09:25 +02:00
- '"%WIXPATH%\\candle" -dVERSION="%VERSION%" -dBINPATH=. pandoc.wxs'
- '"%WIXPATH%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj'
2016-05-10 11:28:33 +02:00
artifacts:
- path: windows\pandoc.zip
2016-05-10 11:28:33 +02:00
name: exe
- path: windows\pandoc-%VERSION%-windows.msi
name: msi