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

Add JDKs to Travis CI build #610

Closed
remkop opened this issue Jan 17, 2019 · 3 comments
Closed

Add JDKs to Travis CI build #610

remkop opened this issue Jan 17, 2019 · 3 comments

Comments

@remkop
Copy link
Owner

remkop commented Jan 17, 2019

For example:

jdk:
  - oraclejdk8
  - oraclejdk11
  - oraclejdk-ea
  - openjdk8
  - openjdk9
  - openjdk10
  - openjdk11
  - openjdk-ea

https://docs.travis-ci.com/user/languages/java/#testing-against-multiple-jdks
https://sormuras.github.io/blog/2018-05-31-jdk-matrix.html
https://www.deps.co/guides/travis-ci-latest-java/

@remkop
Copy link
Owner Author

remkop commented Jan 17, 2019

On Trusty, this works:

addons:
  apt:
    packages:
      - openjdk-6-jdk
jdk: openjdk6

https://docs.travis-ci.com/user/languages/java/#testing-against-multiple-jdks

@remkop
Copy link
Owner Author

remkop commented Jan 17, 2019

@remkop
Copy link
Owner Author

remkop commented Jan 17, 2019

Jacoco 0.8.2 doesn’t support Java 13, so needs to be excluded when building on jdk > 12.

This SO answer may be a good way to accomplish this: https://stackoverflow.com/a/50032881/1446916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant