aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-06-19 15:59:31 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-06-30 09:09:54 +0200
commit3860f8a3375534d27ce8d57aaa2ea5a335ac9fab (patch)
treefd1d3267a84f0027e451735897339354679ebbf1 /travis.sh
parent501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef (diff)
downloadsonarqube-3860f8a3375534d27ce8d57aaa2ea5a335ac9fab.tar.gz
sonarqube-3860f8a3375534d27ce8d57aaa2ea5a335ac9fab.zip
add intern test framework, setup initial unit and medium tests
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/travis.sh b/travis.sh
index ee25f626d7a..cb170cb9d77 100755
--- a/travis.sh
+++ b/travis.sh
@@ -31,8 +31,17 @@ 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" ]
+ 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 \
@@ -43,8 +52,8 @@ PRANALYSIS)
-Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_LOGIN \
- -Dsonar.password=$SONAR_PASSWD
- fi
+ -Dsonar.password=$SONAR_PASSWD
+ fi
;;
*)