From 7c10d53bf9e2c2b8260c37c7c50d9bb9326324f7 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 30 Nov 2015 09:22:05 +0100 Subject: [PATCH] Analyze PR only on master merge --- travis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis.sh b/travis.sh index d3972b45461..a7c429b2803 100755 --- a/travis.sh +++ b/travis.sh @@ -16,7 +16,7 @@ function strongEcho { case "$TARGET" in CI) - if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "$GITHUB_TOKEN" ]; then + if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ -n "$GITHUB_TOKEN" ]; then # For security reasons environment variables are not available on the pull requests # coming from outside repositories # http://docs.travis-ci.com/user/pull-requests/#Security-Restrictions-when-testing-Pull-Requests -- 2.39.5