From: Julien Tanguy Date: Wed, 8 Jul 2015 17:12:59 +0000 (+0200) Subject: Enable library coverage via coveralls.io X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=1dcd44f350f9842027b498e89ae586275047a3d3;p=github%2Ffretlink%2Fhmacaroons.git Enable library coverage via coveralls.io --- 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