Day of JDK 10 General-Availability update. Supports JDK releases ranging from version 8 up to 11.
Caveat: Travis CI doesn’t support Oracle JDK 10, yet. See travis-ci #9368 for details.
Download install-jdk.sh
on-the-fly and let it install most recent JDK versions.
.travis.yml
sudo: false
dist: trusty
language: java
before_install:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
matrix:
include:
# 8
- env: JDK='Oracle JDK 8'
jdk: oraclejdk8
- env: JDK='OpenJDK 8'
jdk: openjdk8
# 9
- env: JDK='Oracle JDK 9'
jdk: oraclejdk9
- env: JDK='OpenJDK 9'
install: . ./install-jdk.sh -F 9
# 10
- env: JDK='Oracle JDK 10'
jdk: oraclejdk10
- env: JDK='OpenJDK 10'
install: . ./install-jdk.sh -F 10 -L GPL
# 11
- env: JDK='Oracle JDK 11'
install: . ./install-jdk.sh -F 11 -L BCL
- env: JDK='OpenJDK 11'
install: . ./install-jdk.sh -F 11 -L GPL
allow_failures:
- env: JDK='Oracle JDK 10'
script:
- echo PATH = ${PATH}
- echo JAVA_HOME = ${JAVA_HOME}
- java -version