aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-14 18:13:22 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-14 18:13:34 +0200
commitf8d11ce6dea055ea75ab7d325fb1530c0e98612a (patch)
tree937319605bb45c174b1698214f3fe518483f4dbb /travis.sh
parent061b6a5dcb5eac555630153f8d4fbfb81adff83a (diff)
downloadsonarqube-f8d11ce6dea055ea75ab7d325fb1530c0e98612a.tar.gz
sonarqube-f8d11ce6dea055ea75ab7d325fb1530c0e98612a.zip
Analyze maintenance branches 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 c23854d051a..34a94dd2663 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_BRANCH
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
echo 'Build and analyze internal pull request'