diff options
author | Tom <thomas.verin@sonarsource.com> | 2017-08-11 10:17:42 +0200 |
---|---|---|
committer | tomverin <thomas.verin@sonarsource.com> | 2017-08-11 15:55:50 +0200 |
commit | 5b11c0833808f89a4da5d4e12dae2bfd6a20ed0b (patch) | |
tree | a310941a13c6a104014afa437666def69641ed0d /travis.sh | |
parent | 4e406b8cd3dab83a6211da7231742caca44e6a96 (diff) | |
download | sonarqube-5b11c0833808f89a4da5d4e12dae2bfd6a20ed0b.tar.gz sonarqube-5b11c0833808f89a4da5d4e12dae2bfd6a20ed0b.zip |
BUILD-495 add incremental analysis and full analysis every 0 ending build
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/travis.sh b/travis.sh index 70f6b1e2cec..b0e49824b35 100755 --- a/travis.sh +++ b/travis.sh @@ -134,11 +134,18 @@ BUILD) mvn org.jacoco:jacoco-maven-plugin:prepare-agent deploy \ $MAVEN_ARGS \ -Pdeploy-sonarsource,release - mvn sonar:sonar \ + if [[ "$TRAVIS_BUILD_NUMBER" == *0 ]]; then + mvn sonar:sonar \ -Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.login=$SONAR_TOKEN \ -Dsonar.projectVersion=$INITIAL_VERSION - + else + mvn sonar:sonar \ + -Dsonar.incremental=true \ + -Dsonar.host.url=$SONAR_HOST_URL \ + -Dsonar.login=$SONAR_TOKEN \ + -Dsonar.projectVersion=$INITIAL_VERSION + fi elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo 'Build release branch' |