diff --git a/trigger-travis.sh b/trigger-travis.sh index 238f34b96..d9cd2388d 100755 --- a/trigger-travis.sh +++ b/trigger-travis.sh @@ -12,6 +12,11 @@ if [ "$TRAVIS_REPO_SLUG" != "$SOURCE" ]; then exit 0; fi +if [ "$TRAVIS_BRANCH" != "master" ]; then + echo "not triggering from non-master branch" + exit 0; +fi + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "not triggering from pull requests" exit 0;