diff options
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/travis.sh b/travis.sh index 284f0def7a0..74820c6fae8 100755 --- a/travis.sh +++ b/travis.sh @@ -37,21 +37,16 @@ CI) if [[ $CURRENT_VERSION =~ "-SNAPSHOT" ]]; then echo "======= Found SNAPSHOT version =======" # 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 + set_maven_build_version $TRAVIS_BUILD_NUMBER else echo "======= Found RELEASE version =======" - # analysis is currently executed by SonarSource internal infrastructure - mvn deploy \ - -Pdeploy-sonarsource,release \ - -B -e -V - ./distribution.sh - fi + # analysis is currently executed by SonarSource internal infrastructure + mvn deploy \ + -Pdeploy-sonarsource \ + -B -e -V + elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then |