diff --git a/.travis.yml b/.travis.yml index 1f0629f8..3d1b7cdc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,10 @@ install: script: - ./scripts/test-all.sh +after_script: + - cabal install hpc-coveralls + - hpc-coveralls servant-server/test + notifications: irc: channels: diff --git a/scripts/test-all.sh b/scripts/test-all.sh index 04fd012b..aebdeeb2 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -35,7 +35,7 @@ test_each () { for s in ${SOURCES[@]} ; do echo "Testing $s..." pushd "$s" - $CABAL configure --enable-tests --ghc-options="$GHC_FLAGS" + $CABAL configure --enable-tests --enable-library-coverage --ghc-options="$GHC_FLAGS" $CABAL build $CABAL test popd