aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-05 16:51:05 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-10 17:13:16 +0100
commite851411f7fd6a1e9f8e94caf92ef10699acb03a9 (patch)
treeadfa5ee5511d0e4b6c7410279d302b42c9d987ee /travis.sh
parenta1be1bb19a200cf6cc2e2685972623df96e553fd (diff)
downloadsonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.tar.gz
sonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.zip
Enable QA pipeline at SonarSource
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh22
1 files changed, 3 insertions, 19 deletions
diff --git a/travis.sh b/travis.sh
index 0e294ae62b2..257f11a9983 100755
--- a/travis.sh
+++ b/travis.sh
@@ -4,7 +4,7 @@ set -euo pipefail
function configureTravis {
mkdir ~/.local
- curl -sSL https://github.com/SonarSource/travis-utils/tarball/v24 | tar zx --strip-components 1 -C ~/.local
+ curl -sSL https://github.com/SonarSource/travis-utils/tarball/v25 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
configureTravis
@@ -28,7 +28,7 @@ CI)
-Pdeploy-sonarsource \
-B -e -V
- elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN-}" ]; then
+ elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
strongEcho 'Build and analyze pull request, no deploy'
# No need for Maven phase "install" as the generated JAR file does not need to be installed
@@ -57,21 +57,6 @@ CI)
fi
;;
-POSTGRES)
- psql -c 'create database sonar;' -U postgres
-
- runDatabaseCI "postgresql" "jdbc:postgresql://localhost/sonar" "postgres" ""
- ;;
-
-MYSQL)
- mysql -e "CREATE DATABASE sonar CHARACTER SET UTF8;" -uroot
- mysql -e "CREATE USER 'sonar'@'localhost' IDENTIFIED BY 'sonar';" -uroot
- mysql -e "GRANT ALL ON sonar.* TO 'sonar'@'localhost';" -uroot
- mysql -e "FLUSH PRIVILEGES;" -uroot
-
- runDatabaseCI "mysql" "jdbc:mysql://localhost/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance" "sonar" "sonar"
- ;;
-
WEB)
set +eu
source ~/.nvm/nvm.sh && nvm install 4
@@ -80,11 +65,10 @@ WEB)
;;
IT)
- if [ "$IT_CATEGORY" == "Plugins" ] && [ ! -n "$GITHUB_TOKEN" ]; then
+ if [ "$IT_CATEGORY" == "Plugins" ] && [ ! -n "${GITHUB_TOKEN:-}" ]; then
echo "This job is ignored as it needs to access a private GitHub repository"
else
start_xvfb
-
mvn install -Pit,dev -DskipTests -Dcategory=$IT_CATEGORY -Dmaven.test.redirectTestOutputToFile=false -B -V -e -Dsource.skip=true
fi
;;