2018-03-12 18:26:26 +01:00
|
|
|
image: Visual Studio 2013
|
2017-05-19 10:29:50 +02:00
|
|
|
clone_folder: "c:\\pandoc"
|
2016-05-10 23:44:05 +02:00
|
|
|
environment:
|
2017-05-19 15:12:56 +02:00
|
|
|
global:
|
|
|
|
WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.11\\bin"
|
2017-12-28 06:25:07 +01:00
|
|
|
STACK_YAML: "c:\\pandoc\\stack.yaml"
|
2018-01-21 17:26:34 +01:00
|
|
|
STACK_BUILD_OPTS: "-j1 --no-terminal --test --local-bin-path=.\\windows"
|
2018-01-20 19:37:16 +01:00
|
|
|
# see #4201, https://github.com/haskell-tools/haskell-tools/issues/277
|
2017-05-24 22:54:11 +02:00
|
|
|
matrix:
|
|
|
|
- STACK_VERSION: "windows-i386"
|
2017-05-19 10:29:50 +02:00
|
|
|
STACK_ROOT: "c:\\sr32"
|
|
|
|
STACK: "%STACK_ROOT%\\stack.exe"
|
2017-08-16 15:47:05 +02:00
|
|
|
STACK_FLAGS: "--flag=hslua:lua_32bits"
|
2017-05-24 11:54:54 +02:00
|
|
|
# - STACK_VERSION: "windows-x86_64"
|
|
|
|
# STACK_ROOT: "c:\\sr64"
|
|
|
|
# STACK: "%STACK_ROOT%\\stack.exe"
|
2017-08-16 15:47:05 +02:00
|
|
|
# STACK_FLAGS: ""
|
2017-05-24 22:54:11 +02:00
|
|
|
|
2017-10-12 20:28:32 +02:00
|
|
|
skip_commits:
|
|
|
|
files:
|
|
|
|
- '*.md'
|
|
|
|
- '*.txt'
|
|
|
|
- '.travis.yml'
|
|
|
|
- 'Makefile'
|
|
|
|
- 'man/pandoc.1'
|
|
|
|
- 'linux/*'
|
|
|
|
- 'macos/*'
|
|
|
|
|
2017-05-24 22:54:11 +02:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-05-24 11:41:05 +02:00
|
|
|
|
2016-05-10 23:44:05 +02:00
|
|
|
cache:
|
2017-05-19 16:21:35 +02:00
|
|
|
- "%STACK_ROOT%"
|
|
|
|
- "%WIXBIN%"
|
2017-05-19 15:12:56 +02:00
|
|
|
# This is where stack install ghc by default, but we don't
|
|
|
|
# cache it because it's too large:
|
|
|
|
# - "c:\\Users\\appveyor\\AppData\\Local\\Programs\\stack"
|
2016-05-12 20:48:40 +02:00
|
|
|
|
2017-05-19 16:22:45 +02:00
|
|
|
# Note: to reset build cache, do the following in JavaScript
|
|
|
|
# console on appveyor:
|
2018-01-21 17:20:08 +01:00
|
|
|
# $.ajax({ url: 'https://ci.appveyor.com/api/projects/jgm/pandoc/buildcache', type: 'DELETE'})
|
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
|
|
|
- |
|
2017-05-19 10:42:21 +02:00
|
|
|
%STACK% --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z e stack.zip -o"%STACK_ROOT%" stack.exe
|
2016-05-10 23:44:05 +02:00
|
|
|
|
2017-05-19 10:25:14 +02:00
|
|
|
# before_test:
|
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
|
2017-05-19 10:25:14 +02:00
|
|
|
- |
|
|
|
|
%STACK% setup > nul
|
|
|
|
%STACK% path
|
|
|
|
echo "" | %STACK% clean
|
2018-01-20 23:46:47 +01:00
|
|
|
echo "" | %STACK% install %STACK_BUILD_OPTS% pandoc pandoc-citeproc %STACK_FLAGS%
|
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-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-19 18:15:49 +02:00
|
|
|
- 7z a "pandoc-%STACK_VERSION%.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\
|
2017-05-19 18:15:49 +02:00
|
|
|
"%WIXBIN%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out "pandoc-%STACK_VERSION%.msi" wixobj\*.wixobj
|
2016-05-10 11:28:33 +02:00
|
|
|
|
|
|
|
artifacts:
|
2017-05-19 18:40:14 +02:00
|
|
|
- path: 'windows\pandoc-%STACK_VERSION%.zip'
|
2016-05-10 11:28:33 +02:00
|
|
|
name: exe
|
2017-05-19 18:40:14 +02:00
|
|
|
- path: 'windows\pandoc-%STACK_VERSION%.msi'
|
2016-06-03 01:55:46 +02:00
|
|
|
name: msi
|