]> source.dussan.org Git - sonarqube.git/commitdiff
Disable incremental analysis from Travis
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 12 Sep 2017 08:03:55 +0000 (10:03 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 12 Sep 2017 08:03:55 +0000 (10:03 +0200)
We have to find a better and deterministic way to enable the
incremental mode. Relying on last character of git sha does not
allow to make Quality Gate quickly back to green (because of
lack of coverage computation)

travis.sh

index a1031c38f729166adb896e82711c3b8a8e6652a3..770d50a65bbab365cc5a4db368aae8fb1c779dfd 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -142,14 +142,7 @@ BUILD)
           $MAVEN_ARGS \
           -Pdeploy-sonarsource,release
         
-    INCREMENTAL=true
-    # Triggers a full analysis for every build number ending with 0, 1 or 2
-    if [[ "$TRAVIS_BUILD_NUMBER" =~ [012]$ ]]; then
-      INCREMENTAL=false
-    fi
-
     mvn sonar:sonar \
-          -Dsonar.incremental=$INCREMENTAL \
           -Dsonar.host.url=$SONAR_HOST_URL \
           -Dsonar.login=$SONAR_TOKEN \
           -Dsonar.projectVersion=$INITIAL_VERSION