Support both cabal and stack in the test-suite. (#139)

This commit is contained in:
David Himmelstrup 2020-08-25 09:57:39 +08:00 committed by GitHub
commit 61fd6bc743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 25 deletions

View file

@ -25,7 +25,7 @@ jobs:
STACK_YAML: stack-lts-12.yaml
stack-nightly:
BUILD: stack
ARGS: --resolver nightly --flag reanimate:-test
ARGS: --resolver nightly --no-run-tests
maxParallel: 6
steps:
- task: Cache@2
@ -51,12 +51,12 @@ jobs:
- script: |
set -o xtrace
stack --install-ghc build $ARGS --only-dependencies
stack --install-ghc build $ARGS --test --flag reanimate:test --only-dependencies
stack --install-ghc build $ARGS --test --only-dependencies
displayName: 'Install dependencies'
- script: |
set -o xtrace
# stack ./examples/counter.hs check
stack test $ARGS --flag reanimate:test --test-arguments="-j2"
stack test $ARGS --test-arguments="-j2"
displayName: 'Build & Test'
- script: |
set -o xtrace

View file

@ -38,11 +38,11 @@ jobs:
displayName: 'Setup'
- script: |
stack --install-ghc build $ARGS --only-dependencies --extra-lib-dirs=/usr/local/opt/openblas/lib
stack --install-ghc build --test $ARGS --flag reanimate:test --only-dependencies
stack --install-ghc build --test $ARGS --only-dependencies
displayName: 'Install dependencies'
- script: |
# stack ./examples/counter.hs check
stack test --flag reanimate:test --test-arguments="-j2"
stack test --test-arguments="-j2"
displayName: 'Build & Test'
- script: |
stack haddock --no-haddock-deps

View file

@ -34,26 +34,19 @@ jobs:
displayName: Cache stack root
- bash: |
set -o xtrace
# $CONDA/condabin/conda.bat install --yes --quiet -c msys2 m2w64-gcc-libgfortran m2w64-openblas
# cp $CONDA/Library/mingw-w64/bin/libgfortran-3.dll $CONDA/Library/mingw-w64/bin/libgfortran.dll
curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
unzip -o /usr/bin/stack.zip -d /usr/bin/
displayName: 'Setup'
- bash: |
set -o xtrace
#stack --install-ghc build $ARGS --no-keep-going --fast --only-dependencies --flag reanimate:enable-hmatrix --flag hmatrix:openblas --extra-lib-dirs=$CONDA/Library/mingw-w64/bin
stack --install-ghc build $ARGS --no-keep-going --fast --only-dependencies
#stack --install-ghc test $ARGS --no-keep-going --fast --flag reanimate:test --only-dependencies --flag reanimate:enable-hmatrix --flag hmatrix:openblas --extra-lib-dirs=$CONDA/Library/mingw-w64/bin
stack --install-ghc test $ARGS --no-keep-going --fast --flag reanimate:test --only-dependencies
stack --install-ghc test $ARGS --no-keep-going --fast --only-dependencies
displayName: 'Install dependencies'
- bash: |
set -o xtrace
# stack ./examples/counter.hs check
# stack test --flag reanimate:test --test-arguments="-j2" --fast --flag reanimate:enable-hmatrix --flag hmatrix:openblas --extra-lib-dirs=$CONDA/Library/mingw-w64/bin
stack test --flag reanimate:test --test-arguments="-j2" --fast
stack test --test-arguments="-j2" --fast
displayName: 'Build & Test'
- bash: |
# stack haddock --no-haddock-deps