diff --git a/.travis.yml b/.travis.yml index e226e33e..fc80d487 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,9 +29,14 @@ install: - cabal install --only-dependencies --enable-tests script: - - cabal configure --enable-tests + - cabal configure --enable-tests --enable-library-coverage - cabal build && cabal test - cabal sdist + +after_script: + - cabal install hpc-coveralls + - hpc-coveralls --exclude-dir=test spec + notifications: irc: channels: diff --git a/README.md b/README.md index 8f7dc47a..e998f1a9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # servant-server [![Build Status](https://secure.travis-ci.org/haskell-servant/servant-server.svg)](http://travis-ci.org/haskell-servant/servant-server) +[![Coverage Status](https://coveralls.io/repos/haskell-servant/servant-server/badge.svg)](https://coveralls.io/r/haskell-servant/servant-server) ![servant](https://raw.githubusercontent.com/haskell-servant/servant/master/servant.png)