diff --git a/.travis.yml b/.travis.yml index 497753789..9bbf26fbf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,27 @@ language: java sudo: false -jdk: - - openjdk7 - - oraclejdk8 - - oraclejdk9 +# Get latest install-jdk.sh script +before_install: + - wget -P ./target/ https://github.com/sormuras/bach/raw/master/install-jdk.sh + +matrix: + include: + - env: JDK_RELEASE='OpenJDK 7' + jdk: openjdk7 + - 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: . ./target/install-jdk.sh -F 10 -L BCL +# Java 10 "OpenJDK" (not yet provided by Travis CI) + - env: JDK='OpenJDK 10' + install: . ./target/install-jdk.sh -F 10 -L GPL +# Java 11 "Oracle JDK" (not yet provided by Travis CI) + - env: JDK='Oracle JDK 11' + install: . ./target/install-jdk.sh -F 11 -L BCL script: - mvn