aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-03-19 12:17:31 +0100
committerSonarTech <sonartech@sonarsource.com>2018-03-22 12:37:47 +0100
commit2851164336ade8cbeb750294c8f2089933b30107 (patch)
treeeec41ca9da6ebaf611ee59f34bde20c8b3fec59b /travis.sh
parente4f1227ef3b1bef4ba9c1d10bc492e3d42c92739 (diff)
downloadsonarqube-2851164336ade8cbeb750294c8f2089933b30107.tar.gz
sonarqube-2851164336ade8cbeb750294c8f2089933b30107.zip
Public commits should only trigger Travis build
No analysis, no QA
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh5
1 files changed, 4 insertions, 1 deletions
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 \