From f8d11ce6dea055ea75ab7d325fb1530c0e98612a Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 14 Sep 2017 18:13:22 +0200 Subject: Analyze maintenance branches on next.sonarqube.com --- travis.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'travis.sh') 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' -- cgit v1.2.3