aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-13 13:53:21 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-13 13:53:21 +0200
commita53ec3030343d4ed02e8558ef3f960a06139879d (patch)
tree5e5c7272096bc5fd1b6d5419d18a7f9ff84f523d /travis.sh
parent9694ea9157e39762bc8c14445f8d0b8d04522590 (diff)
downloadsonarqube-a53ec3030343d4ed02e8558ef3f960a06139879d.tar.gz
sonarqube-a53ec3030343d4ed02e8558ef3f960a06139879d.zip
Analyze maintenance branch as long-living branch on next.sonarqube.com
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/travis.sh b/travis.sh
index 770d50a65bb..39e7a20ac3f 100755
--- a/travis.sh
+++ b/travis.sh
@@ -150,7 +150,14 @@ BUILD)
elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo 'Build release branch'
- mvn deploy $MAVEN_ARGS -Pdeploy-sonarsource,release
+ mvn org.jacoco:jacoco-maven-plugin:prepare-agent deploy \
+ $MAVEN_ARGS \
+ -Pdeploy-sonarsource,release
+
+ mvn sonar:sonar \
+ -Dsonar.host.url=$SONAR_HOST_URL \
+ -Dsonar.login=$SONAR_TOKEN \
+ -Dsonar.branch.name=$TRAVIS_PULL_REQUEST_BRANCH
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
echo 'Build and analyze internal pull request'