From a6f552abcf9db3361c2ad903606b3365182da76a Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 12 Apr 2016 08:04:45 +0200 Subject: [PATCH] QA: enable deploy on branch-* --- travis.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/travis.sh b/travis.sh index 3e5e52d618a..b536631e930 100755 --- a/travis.sh +++ b/travis.sh @@ -28,6 +28,17 @@ CI) -Pdeploy-sonarsource \ -B -e -V + if [[ "${TRAVIS_BRANCH}" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + strongEcho 'Build and deploy' + + # Do not deploy a SNAPSHOT version but the release version related to this build + set_maven_build_version $TRAVIS_BUILD_NUMBER + + # analysis is currently executed by SonarSource internal infrastructure + mvn deploy \ + -Pdeploy-sonarsource \ + -B -e -V + elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then strongEcho 'Build and analyze pull request, no deploy' -- 2.39.5