This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new b8b0b5f chore(ci): install latest openjdk in Travis
b8b0b5f is described below
commit b8b0b5fe5900d8e5ffac75e51a65b2decd35581d
Author: Nicola Ferraro <[email protected]>
AuthorDate: Wed Jun 3 15:19:00 2020 +0200
chore(ci): install latest openjdk in Travis
---
.travis.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index c87e9c0..16c5b8f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -49,3 +49,19 @@ script:
cache:
directories:
- $GOPATH/pkg/mod
+
+# Installing newer openjdk11 because of issues with 11.0.2
+# See:
+# - https://bugs.openjdk.java.net/browse/JDK-8213202
+# - https://travis-ci.community/t/old-java-version-in-bionic/4726/2
+before_install:
+ - echo $JAVA_HOME
+ - which java
+ - sudo rm -rf /usr/local/lib/jvm/
+ - sudo add-apt-repository -y ppa:openjdk-r/ppa
+ - sudo apt-get update
+ - sudo apt-get install -y openjdk-11-jdk-headless
+ - export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
+ - which java
+ - java -version
+ - $JAVA_HOME/bin/java -version