summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2014-01-15 12:32:12 -0800
committerBen Straub <bs@github.com>2014-01-15 12:32:12 -0800
commit998f0016ff2788ee78d47ac2be6d6b9cc6890e11 (patch)
tree0d0b56cf6b2d9df25353ee97f21059795d6b9282 /script
parent53e6f4804b67b757fab065da51901be452b1c765 (diff)
downloadlibgit2-998f0016ff2788ee78d47ac2be6d6b9cc6890e11.tar.gz
Refine build limitation
Diffstat (limited to 'script')
-rwxr-xr-xscript/coverity.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/script/coverity.sh b/script/coverity.sh
index 945a450f1..e72008883 100755
--- a/script/coverity.sh
+++ b/script/coverity.sh
@@ -4,8 +4,13 @@ set -e
# Environment check
[ -z "$COVERITY_TOKEN" ] && echo "Need to set a coverity token" && exit 1
-# Only run this on development
-[ "$TRAVIS_BRANCH" != "development" ] && echo "Not development; bailing." && exit 0
+# Only run this on our branches
+echo "Pull request: $TRAVIS_PULL_REQUEST | Slug: $TRAVIS_REPO_SLUG"
+if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "libgit2/libgit2" ];
+then
+ echo "Only analyzing 'development' on the main repo."
+ exit 0
+fi
COV_VERSION=6.6.1
case `uname -m` in