Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds Java 11 to the test matrix of Azure Pipelines and Travis CI.
AppVeyor is left intact, because I suppose Java 11 is not considered as the mainstream support of XSpec.
Why
Although XSpec itself does not depend on a specific Java version, testing with Java 11 is necessary to catch derivative issues like #633 (and consequently nkutsche/xspec-maven-plugin#1).
What has changed
Azure Pipelines
test/ci/azure-pipelines_template.yml
) and parameterize the Java versiontest/ci/switch-java.cmd
) and call it from the template for switching to Java 11condition
Travis CI
openjdk11
tojdk
test/ci/compile-java.sh
and perform compilation only on Java 8How I tested it
I inspected the console logs on Azure and Travis, and verified these
java -version
outputWarning: Nashorn engine is planned to be removed from a future JDK release
") is observed in Java 11 jobsBats test failure
XSpec test failure
End-to-end test failure
.class
file verification failureFurther work
Update Wiki to mention Java 11.