2015-12-15 18:03:21 +03:00
|
|
|
language: c
|
|
|
|
|
|
|
|
sudo: false
|
2015-03-22 05:22:24 +03:00
|
|
|
|
2017-03-05 14:09:57 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ~/.ghc
|
|
|
|
- ~/.cabal
|
|
|
|
|
2015-03-22 05:22:24 +03:00
|
|
|
matrix:
|
2015-12-15 18:03:21 +03:00
|
|
|
include:
|
2017-02-01 21:01:18 +03:00
|
|
|
- env: CABALVER=1.24 GHCVER=7.8.4
|
|
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-7.8.4], sources: [hvr-ghc]}}
|
|
|
|
- env: CABALVER=1.24 GHCVER=7.10.3
|
|
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3],sources: [hvr-ghc]}}
|
2017-01-26 13:16:54 +03:00
|
|
|
- env: CABALVER=1.24 GHCVER=8.0.2
|
|
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
|
2015-03-22 05:22:24 +03:00
|
|
|
|
|
|
|
before_install:
|
2015-12-15 18:03:21 +03:00
|
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
2015-03-22 05:22:24 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
- cabal --version
|
|
|
|
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
|
|
- travis_retry cabal update
|
2015-07-27 12:00:41 +03:00
|
|
|
- cabal install --only-dependencies --enable-tests
|
2017-03-05 14:09:57 +03:00
|
|
|
- cabal install hpc-coveralls
|
2015-03-22 05:22:24 +03:00
|
|
|
|
|
|
|
script:
|
2017-02-01 21:01:18 +03:00
|
|
|
- cabal configure --enable-tests --enable-coverage -v2 -f dev
|
2016-09-24 20:12:41 +03:00
|
|
|
- travis_wait 60 cabal build
|
2017-02-01 21:01:18 +03:00
|
|
|
- cabal test --show-details=always --test-option=--qc-max-success=1000
|
2015-03-22 05:22:24 +03:00
|
|
|
- cabal sdist
|
2017-02-01 21:01:18 +03:00
|
|
|
- cabal haddock | grep "100%" | wc -l | grep "14"
|
2015-03-22 05:22:24 +03:00
|
|
|
|
2015-08-02 10:33:26 +03:00
|
|
|
after_script:
|
|
|
|
- export PATH=~/.cabal/bin:$PATH
|
2017-02-01 21:01:18 +03:00
|
|
|
- hpc-coveralls --coverage-mode=StrictlyFullLines
|
|
|
|
--exclude-dir=bench-memory
|
|
|
|
--exclude-dir=bench-speed
|
|
|
|
--exclude-dir=tests
|
|
|
|
tests
|
2015-08-02 10:33:26 +03:00
|
|
|
|
2015-07-27 12:00:41 +03:00
|
|
|
notifications:
|
|
|
|
email: false
|