2016-07-30 15:19:30 +03:00
|
|
|
version: 1.0.{build}
|
|
|
|
init:
|
|
|
|
- ps: >-
|
2017-06-20 21:27:10 +03:00
|
|
|
choco install cabal --no-progress
|
2016-07-30 15:19:30 +03:00
|
|
|
|
2016-08-11 00:34:05 +03:00
|
|
|
mkdir C:\ghc
|
2016-07-30 15:19:30 +03:00
|
|
|
|
2017-11-02 14:24:37 +03:00
|
|
|
Invoke-WebRequest "http://downloads.haskell.org/~ghc/8.2.1/ghc-8.2.1-x86_64-unknown-mingw32.tar.xz" -OutFile C:\ghc\ghc.tar.xz -UserAgent "Curl"
|
2017-08-19 02:28:32 +03:00
|
|
|
|
2016-08-11 00:34:05 +03:00
|
|
|
7z x C:\ghc\ghc.tar.xz -oC:\ghc
|
2017-08-19 02:28:32 +03:00
|
|
|
|
2016-08-11 00:34:05 +03:00
|
|
|
7z x C:\ghc\ghc.tar -oC:\ghc
|
|
|
|
|
2017-11-02 15:44:04 +03:00
|
|
|
$env:PATH="$env:PATH;c:\ghc\ghc-8.2.1\bin;$HOME\AppData\Roaming\cabal\bin"
|
2016-07-30 15:19:30 +03:00
|
|
|
|
|
|
|
cabal update
|
|
|
|
|
|
|
|
$env:current_posix=c:\msys64\usr\bin\cygpath -u $(pwd)
|
|
|
|
|
|
|
|
environment:
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
build_script:
|
2017-08-19 02:28:32 +03:00
|
|
|
- ps: >-
|
|
|
|
c:\msys64\usr\bin\bash -l -c "cd $env:current_posix && cabal install -fffi --enable-tests 2>&1"
|
2016-07-30 15:19:30 +03:00
|
|
|
test_script:
|
2017-08-19 02:28:32 +03:00
|
|
|
- ps: c:\msys64\usr\bin\bash -l -c "cd $env:current_posix && make test_c 2>&1"
|