forked from clojure-emacs/cider-nrepl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (47 loc) · 1.87 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.PHONY: test eastwood cljfmt cloverage install smoketest release deploy clean detect_timeout
CLOJURE_VERSION ?= 1.10
export CLOVERAGE_VERSION = 1.0.13
test/resources/cider/nrepl/clojuredocs/export.edn:
curl -o $@ https://github.com/clojure-emacs/clojuredocs-export-edn/raw/master/exports/export.compact.edn
.inline-deps:
lein inline-deps
touch .inline-deps
inline-deps: .inline-deps
test: .inline-deps test/resources/cider/nrepl/clojuredocs/export.edn
lein with-profile +$(CLOJURE_VERSION),+test,+plugin.mranderson/config test
quick-test:
lein with-profile +$(CLOJURE_VERSION),+test test
eastwood:
lein with-profile +$(CLOJURE_VERSION),+eastwood eastwood
cljfmt:
lein with-profile +$(CLOJURE_VERSION),+cljfmt cljfmt check
kondo:
clj-kondo --lint src
cloverage:
lein with-profile +$(CLOJURE_VERSION),+cloverage cloverage
install: .inline-deps
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config install
smoketest: install
cd test/smoketest && \
lein with-profile +$(CLOJURE_VERSION) uberjar && \
java -jar target/smoketest-0.1.0-SNAPSHOT-standalone.jar
# Run a background process that prints all JVM stacktraces after five minutes,
# then kills all JVMs, to help diagnose issues with ClojureScript tests getting
# stuck.
detect_timeout:
(bin/ci_detect_timeout &)
# When releasing, the BUMP variable controls which field in the
# version string will be incremented in the *next* snapshot
# version. Typically this is either "major", "minor", or "patch".
BUMP ?= patch
release:
lein with-profile +$(CLOJURE_VERSION) release $(BUMP)
# Deploying requires the caller to set environment variables as
# specified in project.clj to provide a login and password to the
# artifact repository.
deploy: .inline-deps
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config deploy clojars
clean:
lein clean
cd test/smoketest && lein clean
rm -f .inline-deps