@@ -1,23 +1,33 @@
1−cache:
1+clone_folder: "c:\\stack"
2−- "c:\\sr" # stack root, short paths == fewer problems
2+environment:
5+ STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
9+ - "c:\\sr" # stack root, short paths == fewer problems
10+ - '%LOCALAPPDATA%\Programs\stack' # even less to install...
15+ - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
16+ - 7z x stack.zip stack.exe
6before_test:
19before_test:
7−- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
20+ # the stack install already fails without the templates...
8−- 7z x stack.zip stack.exe
9−- git submodule update --init # to fetch the templates
21+ - git submodule update --init
22+ # set PATH to where the hsb2hs binary is copied to
23+ - cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
24+ - stack install hsb2hs
11−clone_folder: "c:\\stack"
16test_script:
27test_script:
18−# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
28+ # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
19−# descriptor
29+ # descriptor
20−- echo "" | stack --no-terminal test
30+ - echo "" | stack --no-terminal test
22after_test:
32after_test:
23 - ps: 7z a "pandoc.zip" "$(.\\stack.exe path --local-install-root)\\bin\\pandoc*.exe"
33 - ps: 7z a "pandoc.zip" "$(.\\stack.exe path --local-install-root)\\bin\\pandoc*.exe"