From 784660c8ade3ec6be44ba1d2eb5d1b8a609591e8 Mon Sep 17 00:00:00 2001 From: "Julian K. Arni" Date: Fri, 20 Feb 2015 12:41:33 +0100 Subject: [PATCH] Check whether travis build is PR for coveralls. To prevent double messages and double builds. --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6a79eef4..dd34bd61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: