From 2851164336ade8cbeb750294c8f2089933b30107 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 19 Mar 2018 12:17:31 +0100 Subject: [PATCH] Public commits should only trigger Travis build No analysis, no QA --- travis.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 \ -- 2.39.5