From: Simon Brandhof Date: Mon, 19 Mar 2018 11:17:31 +0000 (+0100) Subject: Public commits should only trigger Travis build X-Git-Tag: 7.5~1517 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2851164336ade8cbeb750294c8f2089933b30107;p=sonarqube.git Public commits should only trigger Travis build No analysis, no QA --- diff --git a/travis.sh b/travis.sh index baa705d9eea..5328e02dc61 100755 --- a/travis.sh +++ b/travis.sh @@ -75,8 +75,11 @@ BUILD) # For this reason errors are ignored with "|| true" git fetch --unshallow || true + if [ "$TRAVIS_REPO_SLUG" == "SonarSource/sonarqube" ]; then + # public repository + ./gradlew build --no-daemon --console plain - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo 'Build and analyze master' # FIXME analysis disabled for now ./gradlew --no-daemon --console plain \