aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-06 13:38:14 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-06 13:38:14 +0100
commit305edb8630e8797e6db4da981b5c578c64272b36 (patch)
tree291ba78d6bae4c57da9d00c612ff46aa608c661f /travis.sh
parent45e68e898f2f6d3261d0b06867694d5f094d37d7 (diff)
downloadsonarqube-305edb8630e8797e6db4da981b5c578c64272b36.tar.gz
sonarqube-305edb8630e8797e6db4da981b5c578c64272b36.zip
Fix PROJECT_VERSION on Travis for SNAPSHOT versions
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/travis.sh b/travis.sh
index b68726d718e..965fc5d213c 100755
--- a/travis.sh
+++ b/travis.sh
@@ -76,7 +76,7 @@ function fixBuildVersion {
export BUILD_VERSION="$without_suffix.$TRAVIS_BUILD_NUMBER"
fi
- if [ "${INITIAL_VERSION}" == *"-SNAPSHOT" ]; then
+ if [[ "${INITIAL_VERSION}" == *"-SNAPSHOT" ]]; then
# SNAPSHOT
export PROJECT_VERSION=$BUILD_VERSION
mvn org.codehaus.mojo:versions-maven-plugin:2.2:set -DnewVersion=$PROJECT_VERSION -DgenerateBackupPoms=false -B -e