Check whether travis build is PR for coveralls.

To prevent double messages and double builds.
This commit is contained in:
Julian K. Arni 2015-02-20 12:41:33 +01:00
parent fb71eb8f01
commit 784660c8ad

View file

@ -11,8 +11,12 @@ script:
- ./test-docs.sh
after_script:
- cabal install hpc-coveralls
- hpc-coveralls --exclude-dir=test spec
- |
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: