mirror of
https://github.com/typeable/validationt.git
synced 2024-11-22 01:34:05 +03:00
53 lines
876 B
YAML
53 lines
876 B
YAML
sudo: true
|
|
language: haskell
|
|
|
|
git:
|
|
depth: 5
|
|
|
|
cabal: "2.4"
|
|
|
|
cache:
|
|
directories:
|
|
- "$HOME/.cabal/store"
|
|
- "$HOME/.stack"
|
|
- "$TRAVIS_BUILD_DIR/.stack-work"
|
|
|
|
matrix:
|
|
include:
|
|
|
|
# Cabal
|
|
- ghc: 8.4.4
|
|
- ghc: 8.6.5
|
|
|
|
# Stack
|
|
- ghc: 8.6.5
|
|
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
|
|
|
|
install:
|
|
- |
|
|
if [ -z "$STACK_YAML" ]; then
|
|
ghc --version
|
|
cabal --version
|
|
cabal new-update
|
|
cabal new-build --enable-tests --enable-benchmarks
|
|
else
|
|
# install stack
|
|
curl -sSL https://get.haskellstack.org/ | sh
|
|
|
|
# build project with stack
|
|
stack --version
|
|
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
|
|
fi
|
|
|
|
script:
|
|
- |
|
|
if [ -z "$STACK_YAML" ]; then
|
|
echo 0
|
|
# cabal new-test --enable-tests
|
|
else
|
|
stack test --system-ghc
|
|
fi
|
|
|
|
notifications:
|
|
email: false
|