aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJulien Tanguy <julien.tanguy@jhome.fr>2015-07-08 19:12:59 +0200
committerJulien Tanguy <julien.tanguy@jhome.fr>2015-07-08 19:14:20 +0200
commit1dcd44f350f9842027b498e89ae586275047a3d3 (patch)
treeab87498d4d958c3c4c8574a17d046559f3f54a0a
parent8bbe088d0a04e46a5f0f0128483c73cbb2405dbe (diff)
downloadhmacaroons-1dcd44f350f9842027b498e89ae586275047a3d3.tar.gz
hmacaroons-1dcd44f350f9842027b498e89ae586275047a3d3.tar.zst
hmacaroons-1dcd44f350f9842027b498e89ae586275047a3d3.zip
Enable library coverage via coveralls.io
-rw-r--r--.travis.yml7
1 files 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:
22 - cabal --version 22 - cabal --version
23 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" 23 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
24 - travis_retry cabal update 24 - travis_retry cabal update
25 - cabal install --only-dependencies --enable-tests --enable-benchmarks 25 - cabal install hpc-coveralls
26 - cabal install --only-dependencies --enable-tests --enable-benchmarks --enable-coverage
26 27
27# Here starts the actual work to be performed for the package under 28# Here starts the actual work to be performed for the package under
28# test; any command which exits with a non-zero exit code causes the 29# test; any command which exits with a non-zero exit code causes the
@@ -35,7 +36,7 @@ script:
35 # (including tests/benchmarks) 36 # (including tests/benchmarks)
36 - cabal build 37 - cabal build
37 38
38 - cabal test --show-details=streaming 39 - run-cabal-test --show-details=streaming
39 - cabal check 40 - cabal check
40 41
41 # tests that a source-distribution can be generated 42 # tests that a source-distribution can be generated
@@ -45,4 +46,6 @@ script:
45 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && 46 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
46 (cd dist && cabal install --force-reinstalls "$SRC_TGZ") 47 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
47 48
49after_script:
50 - hpc-coveralls test
48# EOF 51# EOF