Check whether travis build is PR for coveralls.
To prevent double messages and double builds.
commit784660c8ade3ec6be44ba1d2eb5d1b8a609591e8
authorJulian K. Arni <jkarni@gmail.com>
dateFri 20 Feb 2015, 12:41 (12 years ago)
parentfb71eb8
.travis.yml+6−2
@@ -11,8 +11,12 @@ script:
1111 - ./test-docs.sh
1212
1313after_script:
14− - cabal install hpc-coveralls
15− - hpc-coveralls --exclude-dir=test spec
14+ - |
15+ if [ "$TRAVIS_PULL_REQUEST" -eq "$TRAVIS_PULL_REQUEST" ] 2>/dev/null ; then
16+ cabal install hpc-coveralls
17+ hpc-coveralls --exclude-dir=test spec
18+ fi
19+
1620
1721notifications:
1822 irc: