servant/.travis.yml
Julian K. Arni 784660c8ad Check whether travis build is PR for coveralls.
To prevent double messages and double builds.
2015-02-20 12:41:33 +01:00

31 lines
723 B
YAML

language: haskell
ghc:
- 7.8
script:
- cabal configure --enable-tests --enable-library-coverage && cabal build && cabal test
- cabal check
- cabal sdist
- cabal install doctest
- ./test-docs.sh
after_script:
- |
if [ "$TRAVIS_PULL_REQUEST" -eq "$TRAVIS_PULL_REQUEST" ] 2>/dev/null ; then
cabal install hpc-coveralls
hpc-coveralls --exclude-dir=test spec
fi
notifications:
irc:
channels:
- "irc.freenode.org#servant"
template:
- "%{repository}#%{build_number} - %{commit} on %{branch} by %{author}: %{message}"
- "Build details: %{build_url} - Change view: %{compare_url}"
skip_join: true
on_success: change
on_failure: always