-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates deps and and adds more JDK versions in CI (#437)
* Updates lombok and mockito to ideally get tests passing on modern JDKs * Refactor build and lint steps into yaml mixins * Adds multiple jdk versions up to and including latest * Uses latest available circle-ci convenience images * Updates AttachAPI usage to be compatible with newer JVMs * Utilizes reflection to invoke newer startLocalManagementAgent method * Adds openjdk ticket refs and fixes linting errors
- Loading branch information
1 parent
b03f5d5
commit 65aed6f
Showing
3 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,49 @@ | ||
version: 2 | ||
lint_steps: &lint_steps | ||
steps: | ||
- checkout | ||
- run: mvn verify -B -Dhttps.protocols=TLSv1.2 -DskipTests -Dlog4j.configuration=log4j2.travis.properties | ||
build_steps: &build_steps | ||
steps: | ||
- checkout | ||
- run: mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configurationFile=log4j2.travis.properties -Dtests.log_level=info -Djdk.attach.allowAttachSelf=true | ||
- run: | ||
when: on_fail | ||
command: for log in target/surefire-reports/*.txt; do echo "$log ========================" ; cat $log ; done | ||
|
||
jobs: | ||
lint_openjdk8: | ||
docker: | ||
- image: circleci/openjdk:8-jdk | ||
steps: | ||
- checkout | ||
- run: mvn verify -B -Dhttps.protocols=TLSv1.2 -DskipTests -Dlog4j.configuration=log4j2.travis.properties | ||
<<: *lint_steps | ||
test_openjdk8: | ||
docker: | ||
- image: circleci/openjdk:8-jdk | ||
steps: | ||
- checkout | ||
- run: mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configurationFile=log4j2.travis.properties -Dtests.log_level=info | ||
- run: | ||
when: on_fail | ||
command: for log in target/surefire-reports/*.txt; do echo "$log ========================" ; cat $log ; done | ||
<<: *build_steps | ||
test_openjdk11: | ||
docker: | ||
- image: cimg/openjdk:11.0 | ||
<<: *build_steps | ||
test_openjdk15: | ||
docker: | ||
- image: cimg/openjdk:15.0 | ||
<<: *build_steps | ||
test_openjdk17: | ||
docker: | ||
- image: cimg/openjdk:17.0 | ||
<<: *build_steps | ||
test_openjdk19: | ||
docker: | ||
- image: cimg/openjdk:19.0 | ||
<<: *build_steps | ||
|
||
workflows: | ||
version: 2 | ||
workflow: | ||
jobs: | ||
- lint_openjdk8 | ||
- test_openjdk8 | ||
- test_openjdk11 | ||
- test_openjdk15 | ||
- test_openjdk17 | ||
- test_openjdk19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters