]> source.dussan.org Git - sonarqube.git/commitdiff
Public commits should only trigger Travis build
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 19 Mar 2018 11:17:31 +0000 (12:17 +0100)
committerSonarTech <sonartech@sonarsource.com>
Thu, 22 Mar 2018 11:37:47 +0000 (12:37 +0100)
No analysis, no QA

travis.sh

index baa705d9eea60c261b8bb01254caeec7e97d13cd..5328e02dc61f9b28413204043b518d89f8f3e31f 100755 (executable)
--- 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 \