From 1dcd44f350f9842027b498e89ae586275047a3d3 Mon Sep 17 00:00:00 2001 From: Julien Tanguy Date: Wed, 8 Jul 2015 19:12:59 +0200 Subject: [PATCH] Enable library coverage via coveralls.io --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 621b275..ebc8207 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,8 @@ 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 --enable-benchmarks + - cabal install hpc-coveralls + - cabal install --only-dependencies --enable-tests --enable-benchmarks --enable-coverage # Here starts the actual work to be performed for the package under # test; any command which exits with a non-zero exit code causes the @@ -35,7 +36,7 @@ script: # (including tests/benchmarks) - cabal build - - cabal test --show-details=streaming + - run-cabal-test --show-details=streaming - cabal check # tests that a source-distribution can be generated @@ -45,4 +46,6 @@ script: - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && (cd dist && cabal install --force-reinstalls "$SRC_TGZ") +after_script: + - hpc-coveralls test # EOF -- 2.41.0