2015-09-09 22:39:31 +03:00
|
|
|
language: c
|
2015-05-08 18:12:32 +03:00
|
|
|
|
2015-09-09 22:39:31 +03:00
|
|
|
sudo: false
|
|
|
|
|
2017-03-05 16:44:08 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ~/.ghc
|
|
|
|
- ~/.cabal
|
|
|
|
|
2015-09-09 22:39:31 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-01-29 17:25:02 +03:00
|
|
|
- env: CABALVER=1.24 GHCVER=7.10.3
|
|
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3],sources: [hvr-ghc]}}
|
|
|
|
- env: CABALVER=1.24 GHCVER=8.0.2
|
|
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
|
2017-08-09 00:57:17 +03:00
|
|
|
- env: CABALVER=2.0 GHCVER=8.2.1
|
|
|
|
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1], sources: [hvr-ghc]}}
|
2015-05-08 18:12:32 +03:00
|
|
|
|
|
|
|
before_install:
|
2017-01-29 17:25:02 +03:00
|
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
|
|
|
|
|
|
|
install:
|
|
|
|
- cabal --version
|
|
|
|
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
|
|
- travis_retry cabal update
|
|
|
|
- cabal install --only-dependencies --enable-tests
|
|
|
|
|
|
|
|
script:
|
2017-03-05 16:44:08 +03:00
|
|
|
- cabal configure --enable-tests -v2 -f dev
|
2017-01-29 17:25:02 +03:00
|
|
|
- cabal build
|
2017-02-06 18:04:00 +03:00
|
|
|
- cabal test --show-details=always
|
2017-01-29 17:25:02 +03:00
|
|
|
- cabal sdist
|
2017-02-06 18:04:00 +03:00
|
|
|
- cabal haddock | grep "100%" | wc -l | grep "4"
|
2017-01-29 17:25:02 +03:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|