Use windows stack.yaml on appveyor to embedded the templates

This commit is contained in:
Jan Schulz 2016-05-10 23:44:05 +02:00
parent 9a2be80722
commit 7590d19445
2 changed files with 44 additions and 14 deletions

View file

@ -1,23 +1,33 @@
cache:
- "c:\\sr" # stack root, short paths == fewer problems
build: off
before_test:
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
- git submodule update --init # to fetch the templates
clone_folder: "c:\\stack"
environment:
global:
STACK_ROOT: "c:\\sr"
STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
cache:
- "c:\\sr" # stack root, short paths == fewer problems
- '%LOCALAPPDATA%\Programs\stack' # even less to install...
build: off
install:
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
- stack setup > nul
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
test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test
after_test:
- ps: 7z a "pandoc.zip" "$(.\\stack.exe path --local-install-root)\\bin\\pandoc*.exe"

View file

@ -0,0 +1,20 @@
flags:
pandoc:
trypandoc: false
https: true
embed_data_files: true
old-locale: false
network-uri: true
packages:
- '..'
extra-deps:
- 'hsb2hs-0.3.1'
- 'texmath-0.8.6.2'
- 'data-default-0.6.0'
- 'data-default-instances-base-0.1.0'
- 'preprocessor-tools-1.0.1'
# to compile against aeson 0.11.0.0:
# - 'aeson-0.11.0.0'
# - 'fail-4.9.0.0'
# - 'pandoc-types-1.16.1'
resolver: lts-5.8