From d613d9c88866c719f5b1f39037b4d9f0acf3229a Mon Sep 17 00:00:00 2001 From: Chris Purcell Date: Mon, 21 Nov 2016 15:11:43 +0000 Subject: [PATCH] Fix unreliable Travis builds Attempting to enable Java 9 following the advice on [issue 5520](https://github.com/travis-ci/travis-ci/issues/5520#issuecomment-175914595) has resulted in the JDK 8 link that JAVA_HOME points to being intermittently deleted. Alternative advice on [issue 5897](https://github.com/travis-ci/travis-ci/issues/5897#issuecomment-211062030) appears to be more reliable. --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cdc99f782..24bae58ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,14 @@ # sudo/dist/group must be required/trusty/edge to access oraclejdk9 (2016-11-14) sudo: required dist: trusty -group: edge language: java -jdk: - - oraclejdk8 + +addons: + apt: + packages: + - oracle-java8-installer + - oracle-java9-installer install: ./gradlew clean jar script: ./gradlew check