aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-11-30 09:22:05 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-11-30 09:22:05 +0100
commit7c10d53bf9e2c2b8260c37c7c50d9bb9326324f7 (patch)
tree7137023314a266c26a7d85d88cbd6e2df4a959b7 /travis.sh
parent4f07f62c70a0694ba7a7aa62980076223b909238 (diff)
downloadsonarqube-7c10d53bf9e2c2b8260c37c7c50d9bb9326324f7.tar.gz
sonarqube-7c10d53bf9e2c2b8260c37c7c50d9bb9326324f7.zip
Analyze PR only on master merge
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh2
1 files changed, 1 insertions, 1 deletions
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