Skip to content

Commit 68b3c12

Browse files
[ci] Enable Windows tests
1 parent 3ad1860 commit 68b3c12

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.circleci/config.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ version: 2.1
22

33
# Default settings for executors
44

5+
orbs:
6+
win: circleci/[email protected]
7+
58
defaults: &defaults
69
working_directory: ~/repo
710
environment:
@@ -81,6 +84,13 @@ commands:
8184
- base-src-jdk23.zip
8285
key: cache-<< parameters.cache_version >>-{{ checksum "/tmp/clojure_cache_seed" }}
8386

87+
setup-windows:
88+
steps:
89+
- checkout
90+
- run:
91+
name: Install Leiningen
92+
command: choco install lein
93+
8494
jobs:
8595

8696
lint:
@@ -162,6 +172,18 @@ jobs:
162172
name: Running tests (make << parameters.command >>)
163173
command: make << parameters.command >>
164174

175+
test_windows:
176+
description: |
177+
Run tests on MS-Windows using the system's JDK version and Clojure 1.12.
178+
executor: win/default
179+
steps:
180+
- setup-windows
181+
- run:
182+
name: Running tests on Windows
183+
command: |
184+
java -version; if(-not $?){exit 9}
185+
lein with-profile "-user,-dev,+test,+cljs,+1.12" test; if(-not $?){exit 9}
186+
165187
# The ci-test-matrix does the following:
166188
#
167189
# - run tests against the target matrix
@@ -195,6 +217,8 @@ workflows:
195217
clojure_version: ["1.12"]
196218
command: ["test-no-extra-deps"]
197219
<<: *run_always
220+
- test_windows:
221+
<<: *run_always
198222
# Eastwood output partly depends on JDK version it is run on,
199223
# so selectively test with several versions of those.
200224
- eastwood:
@@ -209,6 +233,7 @@ workflows:
209233
requires:
210234
- test
211235
- test_no_extra_deps
236+
- test_windows
212237
- eastwood
213238
- lint
214239
filters:

0 commit comments

Comments
 (0)