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