]> source.dussan.org Git - sonarqube.git/commitdiff
Cache JDK8 installer on Travis
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 21 Jun 2016 07:11:35 +0000 (09:11 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 21 Jun 2016 12:55:47 +0000 (14:55 +0200)
.travis.yml
travis.sh

index 67229af4f37742f5ab7997aa136f4861c86bb834..921480a0f93148b07b087c9415801199b560efdb 100644 (file)
@@ -33,10 +33,3 @@ notifications:
   webhooks:
     - secure: "CrwnSt40WNegJOkgDOaCwUwP9fCgx68pYQWtcZnj4+bRF7kFuFI+EUFuf7G29oPOf9CjmFVvZ+mS/ZJ9AqtjfWh/Q9f4Zsv9BBfOmTgUcidYp8+hQljeesEXwi2Mqfa2JeRysje4xu2p8b52h+apbbQ2Y2FQsP4uwmj1LEpP32U="
   on_start: always
-
-addons:
-  apt:
-    packages:
-      # upgrade java 8 as the default version 1.8.0_31 prevents from compile sources
-      # https://github.com/travis-ci/travis-ci/issues/4042
-      - oracle-java8-installer
index 24d670091d63a8c33d55df105ad2df676508be33..12dec745b74694278869ba879e157bf2916d3b5f 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -4,11 +4,12 @@ set -euo pipefail
 
 function configureTravis {
   mkdir ~/.local
-  curl -sSL https://github.com/SonarSource/travis-utils/tarball/v25 | tar zx --strip-components 1 -C ~/.local
+  curl -sSL https://github.com/SonarSource/travis-utils/tarball/v29 | tar zx --strip-components 1 -C ~/.local
   source ~/.local/bin/install
   echo "$ARTIFACTORY_URL/npmjs/" > .npmrc
 }
 configureTravis
+. installJDK8
 
 function strongEcho {
   echo ""