@@ -1,21 +1,23 @@
2−- cmd: 'git submodule update --init'
2+- "c:\\sr" # stack root, short paths == fewer problems
3−- ps: |
3+- "%LOCALAPPDATA%\\Programs\\stack"
4− choco install haskellplatform -version 2014.2.0.0 -y
5− # Haskell Platfrom package doesn't update PATH for the current shell instance
7− $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
5+build: off
8− $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
9− $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
11− cabal install --only-dependencies --enable-tests -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
13−build_script:
7+before_test:
14−- ps: |
8+- ps: Invoke-WebRequest "https://github.com/commercialhaskell/stack/releases/download/v0.1.5.0/stack-0.1.5.0-x86_64-windows.zip" -OutFile stack.zip
15− echo "PATH is $env:Path"
9+- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.exe?raw=true" -OutFile 7z.exe
16− cabal configure --enable-tests -v2 -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
10+- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.dll?raw=true" -OutFile 7z.dll
17− cabal build
11+- 7z x stack.zip
12+- move stack.exe.exe stack.exe
14+clone_folder: "c:\\stack"
19test_script:
19test_script:
20−- ps: |
20+# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
21− cabal test
21+# descriptor
22+- echo "" | stack --arch i386 --no-terminal --install-ghc test