From 497e182379449eba0e49c337d2458582a05010a4 Mon Sep 17 00:00:00 2001 From: Dmitrii Kovanikov Date: Sat, 18 Apr 2020 19:07:17 +0100 Subject: [PATCH] Build only with stack on Travis CI (#89) * Build only with stack on Travis CI * Specify GHC version on CI env --- .travis.yml | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3d90f02..1ebde4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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