cache:
- "c:\\sr" # stack root, short paths == less problems
- "%LOCALAPPDATA%\\Programs\\stack"

build: off

before_test:
- ps: Invoke-WebRequest "https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-windows.zip" -OutFile stack.zip
- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.exe?raw=true" -OutFile 7z.exe
- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.dll?raw=true" -OutFile 7z.dll
- 7z x stack.zip
- move stack.exe.exe stack.exe

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

test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- stack init
- echo "" | stack --arch i386 --no-terminal --install-ghc test
- hlint test +RTS -K1K

cache:
- "c:\\sr" # stack root, short paths == less problems
- "%LOCALAPPDATA%\\Programs\\stack"

build: off

before_test:
- ps: Invoke-WebRequest "https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-windows.zip" -OutFile stack.zip
- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.exe?raw=true" -OutFile 7z.exe
- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.dll?raw=true" -OutFile 7z.dll
- 7z x stack.zip
- move stack.exe.exe stack.exe

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

test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- stack init
- echo "" | stack --arch i386 --no-terminal --install-ghc test
- stack exec hlint test

Use stack exec to run hlint
Use stack exec to run hlint