@@ -1,19 +1,37 @@
1−cache:
2−- "c:\\sr" # stack root, short paths == fewer problems
1+clone_folder: "c:\\stack"
2+environment:
3+ global:
4+ STACK_ROOT: "c:\\sr"
5+ STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
6+
37
8+cache:
9+ - "c:\\sr" # stack root, short paths == fewer problems
10+ - '%LOCALAPPDATA%\Programs\stack' # even less to install...
11+
412build: off
513
14+install:
15+ - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
16+ - 7z x stack.zip stack.exe
17+ - stack setup > nul
18+
619before_test:
7−- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
8−- 7z x stack.zip stack.exe
20+ # the stack install already fails without 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
925
10−clone_folder: "c:\\stack"
11−environment:
12− global:
13− STACK_ROOT: "c:\\sr"
1426
1527test_script:
16−- stack setup > nul
17−# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
18−# descriptor
19−- echo "" | stack --no-terminal test
28+ # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
29+ # descriptor
30+ - echo "" | stack --no-terminal test
31+
32+after_test:
33+ - ps: 7z a "pandoc.zip" "$(.\\stack.exe path --local-install-root)\\bin\\pandoc*.exe"
34+
35+artifacts:
36+ - path: pandoc.zip
37+ name: exe