Travis: Add Java 10 "Oracle JDK", Java 10 "OpenJDK", Java 11 "Oracle JDK"
@@ -19,10 +19,27 @@ cache:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
-jdk:
- - oraclejdk8
- - openjdk8
- - oraclejdk9
+# Get latest install-jdk.sh script
+before_install:
+ - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
+
+matrix:
+ include:
+ - env: JDK_RELEASE='OpenJDK 8'
+ jdk: openjdk8
+ - env: JDK_RELEASE='OracleJDK 8'
+ jdk: oraclejdk8
+ - env: JDK_RELEASE='OracleJDK 9'
+ jdk: oraclejdk9
+# Java 10 "Oracle JDK" (not yet provided by Travis CI)
+ - env: JDK='Oracle JDK 10'
+ install: . ./install-jdk.sh -F 10 -L BCL
+# Java 10 "OpenJDK" (not yet provided by Travis CI)
+ - env: JDK='OpenJDK 10'
+ install: . ./install-jdk.sh -F 10 -L GPL
+# Java 11 "Oracle JDK" (not yet provided by Travis CI)
+ - env: JDK='Oracle JDK 11'
+ install: . ./install-jdk.sh -F 11 -L BCL
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./mvnw clean verify javadoc:javadoc; fi'
