Skip to content

Commit 32d1db0

Browse files
cichlibbatsov
authored andcommitted
Combine the :test-clj and :test-cljs profiles
1 parent c6aa18d commit 32d1db0

File tree

3 files changed

+25
-35
lines changed

3 files changed

+25
-35
lines changed

.travis.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ script:
88
- make $TARGET
99
env:
1010
matrix:
11-
- CLOJURE_VERSION=1.8 TARGET=test-clj
12-
- CLOJURE_VERSION=1.8 TARGET=test-cljs
13-
- CLOJURE_VERSION=1.9 TARGET=test-clj
14-
- CLOJURE_VERSION=1.9 TARGET=test-cljs
15-
- CLOJURE_VERSION=1.10 TARGET=test-clj
16-
- CLOJURE_VERSION=1.10 TARGET=test-cljs
11+
- CLOJURE_VERSION=1.8 TARGET=test
12+
- CLOJURE_VERSION=1.9 TARGET=test
13+
- CLOJURE_VERSION=1.10 TARGET=test
1714
global:
1815
- secure: "bCp4gU7XgeqLnqKwEpJarnKPbGljHyLE2rZnub4mEHD8kcvh6LoEkG/2QCtnSETj8zrQJwyMuEDGUwPgjmzQ/aEn6UiIYmv7ka6QnLBxOxhqQTbDtG7HssfkeT5b67LgOyQX7ejK88vnmH+OeWXM7kOOvUwVy5BVgsYyr2f1cGU="
1916
- secure: "D2Ie7dUZ9nQOIWtkRl2XWZeijSL8expUXP3GziSqQV1scJzwexxnUsRvWOkc2YU8+6IIGz9tcyt9RrEFUVF31VZgRSHh8P5rGGCzI2l99djKhYFfSErElwgoAJZFtOzougZK66/Gtb5uDo5L/wlKHkl4st3miqm+mEvfJITDjRQ="
@@ -36,9 +33,7 @@ stages:
3633
jobs:
3734
include:
3835
# Test Clojure master against a single JDK
39-
- env: CLOJURE_VERSION=master TARGET=test-clj
40-
jdk: openjdk11
41-
- env: CLOJURE_VERSION=master TARGET=test-cljs
36+
- env: CLOJURE_VERSION=master TARGET=test
4237
jdk: openjdk11
4338

4439
# Coverage analysis
@@ -63,7 +58,6 @@ jobs:
6358

6459
fast_finish: true # don't wait for allowed failures before build finish
6560
allow_failures:
66-
- env: CLOJURE_VERSION=master TARGET=test-clj
67-
- env: CLOJURE_VERSION=master TARGET=test-cljs
61+
- env: CLOJURE_VERSION=master TARGET=test
6862
- env: CLOJURE_VERSION=1.10 TARGET=cloverage
6963
- jdk: openjdk-ea

Makefile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test-clj test-cljs eastwood cljfmt cloverage install smoketest release deploy clean detect_timeout
1+
.PHONY: test eastwood cljfmt cloverage install smoketest release deploy clean detect_timeout
22

33
CLOJURE_VERSION ?= 1.9
44
export CLOVERAGE_VERSION = 1.0.13
@@ -12,17 +12,14 @@ JAVA_VERSION = $(shell lein with-profile +sysutils \
1212

1313
source-deps: .source-deps
1414

15-
test-clj: .source-deps smoketest
16-
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config,+test-clj test
17-
18-
test-cljs: .source-deps
19-
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config,+test-cljs test
15+
test: .source-deps smoketest
16+
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config test
2017

2118
eastwood:
22-
lein with-profile +$(CLOJURE_VERSION),+test-clj,+test-cljs,+eastwood eastwood
19+
lein with-profile +$(CLOJURE_VERSION),+eastwood eastwood
2320

2421
cljfmt:
25-
lein with-profile +$(CLOJURE_VERSION),+test-clj,+test-cljs,+cljfmt cljfmt check
22+
lein with-profile +$(CLOJURE_VERSION),+cljfmt cljfmt check
2623

2724

2825
# Cloverage can't handle some of the code in this project. For now we
@@ -31,7 +28,7 @@ cljfmt:
3128
# exact. See issue #457 for details.
3229

3330
cloverage:
34-
lein with-profile +$(CLOJURE_VERSION),+test-clj,+test-cljs,+cloverage cloverage --codecov \
31+
lein with-profile +$(CLOJURE_VERSION),+cloverage cloverage --codecov \
3532
-e ".*util.instrument" \
3633
-t "^((?!debug-integration-test).)*$$"
3734

project.clj

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
:filespecs [{:type :bytes :path "cider/cider-nrepl/project.clj" :bytes ~(slurp "project.clj")}]
3030

31-
:test-paths ["test/common"] ;; See `test-clj` and `test-cljs` profiles below.
31+
:source-paths ["src"]
32+
:resource-paths ["resources"]
33+
:test-paths ["test/clj" "test/cljs" "test/common"]
3234

3335
:test-selectors {:default (fn [test-meta]
3436
(let [parse-version (fn [v] (mapv #(Integer/parseInt (re-find #"\d+" %)) (clojure.string/split v #"\.")))
@@ -57,16 +59,16 @@
5759

5860
:profiles {:provided {:dependencies [[org.clojure/clojure "1.8.0"]]}
5961

60-
:dev {:dependencies [;; For developing the Leiningen plugin.
61-
[leiningen-core "2.8.3"]
62-
;; For the boot tasks namespace
63-
[boot/base "2.8.2"]
64-
[boot/core "2.8.2"]]}
62+
:dev {:dependencies [[boot/base "2.8.2"]
63+
[boot/core "2.8.2"]
64+
[leiningen-core "2.8.3"]]}
6565

6666
:1.8 {:dependencies [[org.clojure/clojure "1.8.0"]
67-
[org.clojure/clojurescript "1.8.51" :scope "provided"]]}
67+
[org.clojure/clojurescript "1.8.51" :scope "provided"]
68+
[javax.xml.bind/jaxb-api "2.3.1" :scope "provided"]]}
6869
:1.9 {:dependencies [[org.clojure/clojure "1.9.0"]
69-
[org.clojure/clojurescript "1.9.946" :scope "provided"]]
70+
[org.clojure/clojurescript "1.9.946" :scope "provided"]
71+
[javax.xml.bind/jaxb-api "2.3.1" :scope "provided"]]
7072
:test-paths ["test/spec"]}
7173
:1.10 {:dependencies [[org.clojure/clojure "1.10.0"]
7274
[org.clojure/clojurescript "1.10.63" :scope "provided"]]
@@ -75,13 +77,10 @@
7577
:dependencies [[org.clojure/clojure "1.11.0-master-SNAPSHOT"]
7678
[org.clojure/clojurescript "1.10.439" :scope "provided"]]}
7779

78-
:test-clj {:source-paths ["test/src"]
79-
:java-source-paths ["test/java"]
80-
:resource-paths ["test/resources"]
81-
:test-paths ["test/clj"]}
82-
:test-cljs {:test-paths ["test/cljs"]
83-
:dependencies [[cider/piggieback "0.3.10"]
84-
[javax.xml.bind/jaxb-api "2.3.1"]]}
80+
:test {:source-paths ["test/src"]
81+
:java-source-paths ["test/java"]
82+
:resource-paths ["test/resources"]
83+
:dependencies [[cider/piggieback "0.3.10"]]}
8584

8685
:repl {:repl-options {:nrepl-middleware [cider.nrepl/wrap-apropos
8786
cider.nrepl/wrap-classpath

0 commit comments

Comments
 (0)