I added this lines to before_install:
- sudo apt-get update
- sudo apt-get upgrade
- java -version
The output is:
openjdk version “11.0.2” 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
If i run this command on our production server, then i get:
openjdk version “11.0.4” 2019-07-16
I would expect to have the same java version in travis.
I think there is a bug in the Version 11.0.2 which causes our build to fail.