diff options
author | Tom <thomas.verin@sonarsource.com> | 2016-04-12 08:08:35 +0200 |
---|---|---|
committer | Tom <thomas.verin@sonarsource.com> | 2016-04-12 08:08:35 +0200 |
commit | b7674a13c80ef8581eb95c553e2790d6226677ee (patch) | |
tree | b599b2393d294b34dd27fe37e13f54a870039629 /travis.sh | |
parent | c71566b5b38f37c7b7998f3d4a53b1e104d8e471 (diff) | |
download | sonarqube-b7674a13c80ef8581eb95c553e2790d6226677ee.tar.gz sonarqube-b7674a13c80ef8581eb95c553e2790d6226677ee.zip |
QA: enable deploy on branch-*
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/travis.sh b/travis.sh index 3e5e52d618a..18715fa34d2 100755 --- a/travis.sh +++ b/travis.sh @@ -28,6 +28,17 @@ CI) -Pdeploy-sonarsource \ -B -e -V + elif [[ "${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' |