forked from clojure-emacs/cider-nrepl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (43 loc) · 1.69 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
.PHONY: test eastwood cljfmt cloverage install smoketest release deploy clean detect_timeout
CLOJURE_VERSION ?= 1.9
export CLOVERAGE_VERSION = 1.0.13
JAVA_VERSION = $(shell lein with-profile +sysutils \
sysutils :java-version-simple | cut -d " " -f 2)
.source-deps:
lein source-deps
touch .source-deps
source-deps: .source-deps
test: .source-deps
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config test
eastwood:
lein with-profile +$(CLOJURE_VERSION),+eastwood eastwood
cljfmt:
lein with-profile +$(CLOJURE_VERSION),+cljfmt cljfmt check
cloverage:
lein with-profile +$(CLOJURE_VERSION),+cloverage cloverage
install: .source-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: .source-deps
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config deploy clojars
clean:
lein clean
cd test/smoketest && lein clean
rm -f .source-deps