aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorTom <thomas.verin@sonarsource.com>2018-11-27 11:17:45 +0100
committerSonarTech <sonartech@sonarsource.com>2018-11-27 11:19:26 +0100
commit0a52c5067d46ce684231b8f61ea9f72d4d89fc22 (patch)
tree96c439539770ba8f4e6af7f52aff3b1ded85f339 /travis.sh
parent8a11245143e55b974ad7bd54e6bcd09714114dfd (diff)
downloadsonarqube-0a52c5067d46ce684231b8f61ea9f72d4d89fc22.tar.gz
sonarqube-0a52c5067d46ce684231b8f61ea9f72d4d89fc22.zip
Use travis way of retrieving latest oracle JDK8
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/travis.sh b/travis.sh
index 06aced71579..fb2c900d205 100755
--- a/travis.sh
+++ b/travis.sh
@@ -4,35 +4,6 @@ set -euo pipefail
./.travis/setup_ramdisk.sh
#
-# A (too) old version of JDK8 is installed by default on Travis.
-# This method is preferred over Travis apt oracle-java8-installer because
-# JDK is kept in cache. It does not need to be downloaded from Oracle
-# at each build.
-#
-installJdk8() {
- # copied from https://github.com/SonarSource/travis-utils/blob/master/bin/installJDK8
- JDK_RELEASE=191
- echo "Setup JDK 1.8u$JDK_RELEASE"
- mkdir -p ~/jvm
- pushd ~/jvm > /dev/null
-
- if [ ! -d "jdk1.8.0_$JDK_RELEASE" ]; then
- {
- wget --quiet --continue --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz
- } || {
- echo "failed to download JDK 1.8u$JDK_RELEASE"
- exit 1
- }
- tar xzf jdk-8u$JDK_RELEASE-linux-x64.tar.gz
- rm jdk-8u$JDK_RELEASE-linux-x64.tar.gz
- fi
- popd > /dev/null
- export JAVA_HOME=~/jvm/jdk1.8.0_$JDK_RELEASE
- export PATH=$JAVA_HOME/bin:$PATH
- echo "JDK 1.8u$JDK_RELEASE installed"
-}
-
-#
# Configure Maven settings and install some script utilities
#
configureTravis() {
@@ -65,7 +36,6 @@ case "$TARGET" in
BUILD)
git fetch --unshallow
- installJdk8
./gradlew build sonarqube --no-daemon --console plain \
-PjacocoEnabled=true \
-Dsonar.projectKey=org.sonarsource.sonarqube:sonarqube \