Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to openjdk for Travis checks. #305

Merged
merged 1 commit into from
May 31, 2019

Conversation

zvezdan
Copy link
Member

@zvezdan zvezdan commented May 31, 2019

Travis started switching to Ubuntu 16.04 (Xenial) from 14.04 (Trusty)
for all builds. The Oracle JDK does not come pre-installed any more and
is causing the issue during install:

Installing oraclejdk8
$ export JAVA_HOME=~/oraclejdk8
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace
"/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
install-jdk.sh 2019-05-02
Expected feature release number in range of 9 to 13, but got: 8
The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8"
--workspace "/home/travis/.cache/install-jdk" --feature "8" --license
"BCL"" failed and exited with 3 during .
Your build has been stopped.

One option is to set dist: trusty but that's an EOL distro at this
point. Switching to openjdk feels safer choice at this point.

References:

Travis started switching to Ubuntu 16.04 (Xenial) from 14.04 (Trusty)
for all builds. The Oracle JDK does not come pre-installed any more and
is causing the issue during install:
```
Installing oraclejdk8
$ export JAVA_HOME=~/oraclejdk8
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace
"/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
install-jdk.sh 2019-05-02
Expected feature release number in range of 9 to 13, but got: 8
The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8"
--workspace "/home/travis/.cache/install-jdk" --feature "8" --license
"BCL"" failed and exited with 3 during .
Your build has been stopped.
```
One option is to set `dist: trusty` but that's an EOL distro at this
point. Switching to openjdk feels safer choice at this point.

References:

* https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment
* https://travis-ci.community/t/install-of-oracle-jdk-8-failing/3038
@zvezdan zvezdan merged commit 7efb3f6 into linkedin:master May 31, 2019
@zvezdan zvezdan deleted the fix-travis-checks branch May 31, 2019 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant