Skip to content

Commit c003858

Browse files
committed
Move the spotbugs check out of test_npm_8 and into test_nomaven_11 because test_npm_8 is failing repeatedly on CI due to resource exhaustion.
1 parent 929e4af commit c003858

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.circleci/config.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ anchors:
4242
path: lib-extra/build/test-results/test
4343
- store_test_results:
4444
path: plugin-gradle/build/test-results/test
45+
- store_artifacts:
46+
path: lib/build/spotbugs
47+
- store_artifacts:
48+
path: lib-extra/build/spotbugs
49+
- store_artifacts:
50+
path: testlib/build/spotbugs
51+
- store_artifacts:
52+
path: plugin-gradle/build/spotbugs
53+
4554
jobs:
4655
# gradlew spotlessCheck assemble testClasses
4756
assemble_testClasses:
@@ -108,22 +117,14 @@ jobs:
108117
- store_test_results:
109118
path: plugin-gradle/build/test-results/NpmTest
110119
- run:
111-
name: gradlew check
112-
command: export SPOTLESS_EXCLUDE_MAVEN=true && ./gradlew check --build-cache
120+
name: gradlew test
121+
command: export SPOTLESS_EXCLUDE_MAVEN=true && ./gradlew test --build-cache
113122
- store_test_results:
114123
path: testlib/build/test-results/test
115124
- store_test_results:
116125
path: lib-extra/build/test-results/test
117126
- store_test_results:
118127
path: plugin-gradle/build/test-results/test
119-
- store_artifacts:
120-
path: lib/build/spotbugs
121-
- store_artifacts:
122-
path: lib-extra/build/spotbugs
123-
- store_artifacts:
124-
path: testlib/build/spotbugs
125-
- store_artifacts:
126-
path: plugin-gradle/build/spotbugs
127128
test_windows:
128129
executor:
129130
name: win/default

gradle/java-setup.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tasks.named('spotbugsTest') {
2626
}
2727
tasks.named('spotbugsMain') {
2828
// only run on Java 8 (no benefit to running twice)
29-
enabled = org.gradle.api.JavaVersion.current() == org.gradle.api.JavaVersion.VERSION_1_8
29+
enabled = org.gradle.api.JavaVersion.current() == org.gradle.api.JavaVersion.VERSION_11
3030
reports {
3131
html.enabled = true
3232
}

0 commit comments

Comments
 (0)