Skip to content

Commit

Permalink
Build only with stack on Travis CI (#89)
Browse files Browse the repository at this point in the history
* Build only with stack on Travis CI

* Specify GHC version on CI env
  • Loading branch information
chshersh authored Apr 18, 2020
1 parent 5a45366 commit 497e182
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,28 @@
sudo: true
language: haskell
language: generic

git:
depth: 5

cabal: "3.0"

cache:
directories:
- "$HOME/.cabal/store"
- "$HOME/.stack"
- "$TRAVIS_BUILD_DIR/.stack-work"

matrix:
include:
- ghc: 8.2.2
- ghc: 8.4.4
- ghc: 8.6.5
- ghc: 8.8.3
- ghc: 8.10.1

- ghc: 8.8.3
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
- env: GHC='8.8.3'
os: linux
- env: GHC='8.8.3'
os: osx

install:
- |
if [ -z "$STACK_YAML" ]; then
cabal update
cabal build --enable-tests --enable-benchmarks
else
curl -sSL https://get.haskellstack.org/ | sh
stack --version
stack build --system-ghc --test --no-run-tests
fi
# install stack and build project
- curl -sSL https://get.haskellstack.org/ | sh
- stack --version
- stack build --test --no-run-tests --bench --no-run-benchmarks

script:
- |
if [ -z "$STACK_YAML" ]; then
cabal test --enable-tests
else
stack build --system-ghc --test --bench --no-run-benchmarks --no-terminal --ghc-options=-Werror
fi
- stack test --no-terminal

notifications:
email: false

0 comments on commit 497e182

Please sign in to comment.