cache:
- "c:\\sr -> appveyor.yml" #

build: off

before_test:
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
- curl -ocabal.tar.gz https://www.haskell.org/cabal/release/cabal-install-1.22.0.0/cabal-1.22.0.0-i386-unknown-mingw32.tar.gz
- 7z x cabal.tar.gz
- 7z x cabal.tar
- ren cabal-1.22.0.0-i386-unknown-mingw32.exe cabal.exe

clone_folder: "c:\\project"
environment:
  global:
    STACK_ROOT: "c:\\sr"

test_script:
- echo %PATH%
- set PATH=C:\project;%PATH%
- C:\project\cabal --version
- stack init
- stack setup > nul
- echo "" | stack --no-terminal build
- echo "" | stack --no-terminal test

cache:
- "c:\\sr -> appveyor.yml" #

build: off

before_test:
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
- curl -ocabal.tar.gz https://www.haskell.org/cabal/release/cabal-install-1.22.0.0/cabal-1.22.0.0-i386-unknown-mingw32.tar.gz
- 7z x cabal.tar.gz
- 7z x cabal.tar
- ren cabal-1.22.0.0-i386-unknown-mingw32.exe cabal.exe

clone_folder: "c:\\project"
environment:
  global:
    STACK_ROOT: "c:\\sr"

test_script:
- echo %PATH%
- set PATH=C:\project;%PATH%
- C:\project\cabal --version
- stack init
- stack setup > nul
- echo "" | stack --no-terminal build
- set STACK_ROOT=
- echo "" | stack --no-terminal test

Clear the STACK_ROOT before running the stack test
Clear the STACK_ROOT before running the stack test
