summaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/travis.sh b/travis.sh
index ee854f6a711..a5614066308 100755
--- a/travis.sh
+++ b/travis.sh
@@ -3,8 +3,7 @@
set -euo pipefail
function installTravisTools {
- # curl -sSL https://raw.githubusercontent.com/sonarsource/travis-utils/v2.1/install.sh | bash
- curl -sSL https://raw.githubusercontent.com/sonarsource/travis-utils/master/install.sh | bash
+ curl -sSL https://raw.githubusercontent.com/sonarsource/travis-utils/v3/install.sh | bash
}
case "$JOB" in
@@ -32,15 +31,23 @@ MYSQL)
travis_runDatabaseCI "mysql" "jdbc:mysql://localhost/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance" "sonar" "sonar"
;;
+WEB)
+ export DISPLAY=:99.0
+ sh -e /etc/init.d/xvfb start
+ wget http://selenium-release.storage.googleapis.com/2.46/selenium-server-standalone-2.46.0.jar
+ java -jar selenium-server-standalone-2.46.0.jar &
+ sleep 3
+ cd server/sonar-web && npm install && npm test
+ ;;
+
PRANALYSIS)
if [ -n "$SONAR_GITHUB_OAUTH" ] && [ "${TRAVIS_PULL_REQUEST}" != "false" ]
then
echo "Start pullrequest analysis"
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -B -e -V -Dmaven.test.failure.ignore=true -Dclirr=true \
- -Dsonar.analysis.mode=preview \
+ -Dsonar.analysis.mode=incremental \
-Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
-Dsonar.github.repository=$SONAR_GITHUB_REPOSITORY \
- -Dsonar.forceUpdate=true \
-Dsonar.github.login=$SONAR_GITHUB_LOGIN \
-Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \
-Dsonar.host.url=$SONAR_HOST_URL \
@@ -61,7 +68,6 @@ ITS_UPDATECENTER)
travis_sonarqube_its "updatecenter"
;;
-
ITS_TESTING)
installTravisTools