@@ -1,17 +1,17 @@
1−clone_folder: "c:\\stack"
1+clone_folder: 'c:\pandoc'
22environment:
3− global:
4− STACK_ROOT: "c:\\sr"
5− STACK_YAML: "c:\\stack\\stack.pkg.yaml"
6− WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
73 matrix:
84 - STACK_VERSION: 'windows-i386'
9− - STACK_VERSION: 'windows-x86_64'
5+ STACK_ROOT: 'c:\sr32'
6+ STACK: '%STACK_ROOT%\stack.exe'
7+ WIXBIN: 'c:\Program Files (x86)\WiX Toolset v3.10\bin'
8+ STACK_YAML: 'c:\pandoc\stack.pkg.yaml'
109
1110cache:
12− - "c:\\sr" # stack root, short paths == fewer problems
13− - "c:\\stack\\stack.exe"
14− - '%WIXBIN%'
11+ - '"%STACK_ROOT%"'
12+ - '"%WIXBIN%"'
13+ # This is where stack install ghc by default:
14+ - 'c:\Users\appveyor\AppData\Local\Programs\stack'
1515
1616# We don't do a normal C build, but build in test_script via stack
1717build: off
@@ -19,19 +19,18 @@ build: off
1919install:
2020 - '"%WIXBIN%"\candle -? || choco install wixtoolset'
2121 - |
22− stack --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z x stack.zip stack.exe
23− - stack setup > nul
22+ %STACK% --version || curl -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z x stack.zip stack.exe
2423
25−before_test:
26− # the stack install already fails without the templates...
27− - git submodule update --init
24+# before_test:
2825
2926test_script:
3027 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
3128 # descriptor
32− - echo "" | stack clean
33− - echo "" | stack -j1 --no-terminal test
34− - echo "" | stack -j1 --local-bin-path=.\windows install pandoc pandoc-citeproc
29+ - |
30+ %STACK% setup > nul
31+ %STACK% path
32+ echo "" | %STACK% clean
33+ echo "" | %STACK% -j1 --no-terminal --test --local-bin-path=.\windows install pandoc pandoc-citeproc
3534
3635after_test:
3736 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)