@@ -2,12 +2,12 @@ clone_folder: "c:\\stack"
22environment:
33 global:
44 STACK_ROOT: "c:\\sr"
5− STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
5+ STACK_YAML: "c:\\stack\\windows\\stack.yaml"
66 WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
77
88cache:
99 - "c:\\sr" # stack root, short paths == fewer problems
10− - '%LOCALAPPDATA%\Programs\stack' # even less to install...
10+ - "c:\\stack\\stack.exe"
1111 - '%WIXBIN%'
1212
1313# We don't do a normal C build, but build in test_script via stack
@@ -15,8 +15,8 @@ build: off
1515
1616install:
1717 - '"%WIXBIN%"\candle -? || choco install wixtoolset'
18− - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
19− - 7z x stack.zip stack.exe
18+ - |
19+ stack --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe
2020 - stack setup > nul
2121
2222before_test:
@@ -25,14 +25,10 @@ before_test:
2525 # set PATH to where the hsb2hs binary is copied to
2626 - cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
2727 - stack install hsb2hs
28− # we'll need this to create the MSI
29− - git clone https://github.com/jgm/pandoc-citeproc
3028
3129test_script:
3230 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
3331 # descriptor
34− - pwd
35− - where stack
3632 - echo "" | stack clean
3733 - echo "" | stack --no-terminal test
3834 - echo "" | stack --local-bin-path . install pandoc pandoc-citeproc