Skip to content

Commit 2bb30ea

Browse files
alexander-yakushevbbatsov
authored andcommitted
[ci] Split testing jobs into quick and full tests
1 parent 69a0f48 commit 2bb30ea

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

.circleci/config.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,30 @@ jobs:
129129

130130
test:
131131
description: |
132-
Run tests against given version of JDK and Clojure
132+
Run quick tests against given version of JDK and Clojure without inlining dependencies
133+
parameters:
134+
jdk_version:
135+
description: Version of JDK to test against
136+
type: string
137+
clojure_version:
138+
description: Version of Clojure to test against
139+
type: string
140+
executor: << parameters.jdk_version >>
141+
environment:
142+
CLOJURE_VERSION: << parameters.clojure_version >>
143+
JDK_SRC_VERSION: << parameters.jdk_version >>
144+
steps:
145+
- checkout
146+
- with_cache:
147+
cache_version: "test_v1_<< parameters.clojure_version >>_<< parameters.jdk_version >>"
148+
steps:
149+
- run:
150+
name: Running quick tests
151+
command: make quick-test
152+
153+
full-test:
154+
description: |
155+
Run tests against given version of JDK and Clojure with inlining the dependencies
133156
parameters:
134157
jdk_version:
135158
description: Version of JDK to test against
@@ -145,7 +168,7 @@ jobs:
145168
steps:
146169
- checkout
147170
- with_cache:
148-
cache_version: "test_code_v4_<< parameters.clojure_version >>_<< parameters.jdk_version >>"
171+
cache_version: "full_test_v1_<< parameters.clojure_version >>_<< parameters.jdk_version >>"
149172
steps:
150173
- run:
151174
name: Running tests with inlined deps
@@ -171,20 +194,27 @@ workflows:
171194
ci-test-matrix:
172195
jobs:
173196
- test:
174-
# Regular tests for all Clojure and JDK versions (except JDK21, see
175-
# below). This matrix doesn't perform parser tests because we don't
176-
# have JDK sources here.
197+
# Regular (quick) tests for all Clojure and JDK versions.
177198
matrix:
178199
alias: "test"
179200
parameters:
180201
clojure_version: ["1.10", "1.11", "1.12"]
181202
jdk_version: [jdk8, jdk11, jdk17, jdk21, jdk24]
182203
<<: *run_always
204+
- full-test:
205+
# Full tests against selected versions.
206+
matrix:
207+
alias: "full-test"
208+
parameters:
209+
clojure_version: ["1.12"]
210+
jdk_version: [jdk8, jdk24]
211+
<<: *run_always
183212
- lint:
184213
<<: *run_always
185214
- deploy:
186215
requires:
187216
- test
217+
- full-test
188218
- lint
189219
filters:
190220
branches:

0 commit comments

Comments
 (0)