Skip to content

Commit 998f001

Browse files
committed
Refine build limitation
1 parent 53e6f48 commit 998f001

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

script/coverity.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ set -e
44
# Environment check
55
[ -z "$COVERITY_TOKEN" ] && echo "Need to set a coverity token" && exit 1
66

7-
# Only run this on development
8-
[ "$TRAVIS_BRANCH" != "development" ] && echo "Not development; bailing." && exit 0
7+
# Only run this on our branches
8+
echo "Pull request: $TRAVIS_PULL_REQUEST | Slug: $TRAVIS_REPO_SLUG"
9+
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "libgit2/libgit2" ];
10+
then
11+
echo "Only analyzing 'development' on the main repo."
12+
exit 0
13+
fi
914

1015
COV_VERSION=6.6.1
1116
case `uname -m` in

0 commit comments

Comments
 (0)