1
1
.PHONY : test-clj test-cljs eastwood cljfmt cloverage install smoketest release deploy clean check_node
2
2
3
- VERSION ?= 1.9
3
+ CLOJURE_VERSION ?= 1.9
4
4
export CLOVERAGE_VERSION = 1.0.13
5
5
6
6
# The test-cljs target needs to be modified if working with JDK9
@@ -14,23 +14,17 @@ JAVA_VERSION = $(shell lein with-profile +sysutils \
14
14
source-deps : .source-deps
15
15
16
16
test-clj : .source-deps smoketest
17
- lein with-profile +$(VERSION ) ,+plugin.mranderson/config,+test-clj test
17
+ lein with-profile +$(CLOJURE_VERSION ) ,+plugin.mranderson/config,+test-clj test
18
18
19
- test-cljs : .source-deps
20
- if [ " $( JAVA_VERSION) " = " 9" ]; then \
21
- lein with-profile +$(VERSION),+plugin.mranderson/config,+test-cljs \
22
- update-in :jvm-opts concat '["--add-modules" "java.xml.bind"]' \
23
- -- test; \
24
- else \
25
- lein with-profile +$(VERSION),+plugin.mranderson/config,+test-cljs test; \
26
- fi
19
+ test-cljs : .source-deps check_node
20
+ lein with-profile +$(CLOJURE_VERSION ) ,+plugin.mranderson/config,+test-cljs test
27
21
28
22
eastwood :
29
- lein with-profile +$(VERSION ) ,+test-clj,+test-cljs,+eastwood eastwood \
23
+ lein with-profile +$(CLOJURE_VERSION ) ,+test-clj,+test-cljs,+eastwood eastwood \
30
24
" {:namespaces [:source-paths] :exclude-namespaces [cider-nrepl.plugin]}"
31
25
32
26
cljfmt :
33
- lein with-profile +$(VERSION ) ,+test-clj,+test-cljs,+cljfmt cljfmt check
27
+ lein with-profile +$(CLOJURE_VERSION ) ,+test-clj,+test-cljs,+cljfmt cljfmt check
34
28
35
29
36
30
# Cloverage can't handle some of the code in this project. For now we
@@ -39,18 +33,18 @@ cljfmt:
39
33
# exact. See issue #457 for details.
40
34
41
35
cloverage :
42
- lein with-profile +$(VERSION ) ,+test-clj,+cloverage cloverage --codecov \
36
+ lein with-profile +$(CLOJURE_VERSION ) ,+test-clj,+cloverage cloverage --codecov \
43
37
-e " .*java.parser" \
44
38
-e " cider-nrepl.plugin" \
45
39
-e " .*util.instrument" \
46
40
-t " ^((?!debug-integration-test).)*$$ "
47
41
48
42
install : .source-deps
49
- lein with-profile +$(VERSION ) ,+plugin.mranderson/config install
43
+ lein with-profile +$(CLOJURE_VERSION ) ,+plugin.mranderson/config install
50
44
51
45
smoketest : install
52
46
cd test/smoketest && \
53
- lein with-profile +$(VERSION ) uberjar && \
47
+ lein with-profile +$(CLOJURE_VERSION ) uberjar && \
54
48
java -jar target/smoketest-0.1.0-SNAPSHOT-standalone.jar
55
49
56
50
check_node :
@@ -63,14 +57,14 @@ check_node:
63
57
BUMP ?= patch
64
58
65
59
release :
66
- lein with-profile +$(VERSION ) release $(BUMP )
60
+ lein with-profile +$(CLOJURE_VERSION ) release $(BUMP )
67
61
68
62
# Deploying requires the caller to set environment variables as
69
63
# specified in project.clj to provide a login and password to the
70
64
# artifact repository.
71
65
72
66
deploy : .source-deps
73
- lein with-profile +$(VERSION ) ,+plugin.mranderson/config deploy clojars
67
+ lein with-profile +$(CLOJURE_VERSION ) ,+plugin.mranderson/config deploy clojars
74
68
75
69
clean :
76
70
lein clean
0 commit comments