aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorTom <thomas.verin@sonarsource.com>2016-05-27 15:34:03 +0200
committerTom <thomas.verin@sonarsource.com>2016-05-27 16:56:33 +0200
commitb77f2409e4707fec92bb85d8b1a503e0fb258a5d (patch)
treef4401fd64178369f8d15eb11842de8e28b246213 /travis.sh
parent84392b2963db685e5ea4c473da12f98b1049a52a (diff)
downloadsonarqube-b77f2409e4707fec92bb85d8b1a503e0fb258a5d.tar.gz
sonarqube-b77f2409e4707fec92bb85d8b1a503e0fb258a5d.zip
handle release distribution from travis
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/travis.sh b/travis.sh
index 9859d8a5f3c..50e6da7b3cf 100755
--- a/travis.sh
+++ b/travis.sh
@@ -38,14 +38,22 @@ CI)
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
else
echo "======= Found RELEASE version ======="
+ # analysis is currently executed by SonarSource internal infrastructure
+ mvn deploy \
+ -Dmaven.test.skip=true \
+ -Pdeploy-sonarsource,release \
+ -B -e -V
+ ./distribution.sh
+
fi
- # analysis is currently executed by SonarSource internal infrastructure
- mvn deploy \
- -Pdeploy-sonarsource,release \
- -B -e -V
+
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
strongEcho 'Build and analyze pull request, no deploy'