I added this lines to before_install:
- sudo apt-get update
- sudo apt-get upgrade
- java -version
The output is:
java -version
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:
/usr/lib/jvm/java-11-openjdk-amd64/bin/java -version
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.
Build url: https://travis-ci.org/MyCoRe-Org/mycore/builds/571887611