forked from nrepl/nrepl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 1.29 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
.PHONY: test docs eastwood cljfmt cloverage release deploy clean
VERSION ?= 1.9
# Some tests need to be filtered based on JVM version. This selector
# will be mapped to a function in project.clj, and that function
# determines which `deftest` to run based on their metadata.
JAVA_VERSION := $(shell lein with-profile +sysutils \
sysutils :java-version-simple | cut -d " " -f 2)
TEST_SELECTOR := :java$(JAVA_VERSION)
test:
lein with-profile +$(VERSION) test $(TEST_SELECTOR)
eastwood:
lein with-profile +$(VERSION),+eastwood eastwood
cljfmt:
lein with-profile +$(VERSION),+cljfmt cljfmt check
cloverage:
lein with-profile +$(VERSION),+cloverage cloverage --codecov
verify_cljdoc:
curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s doc/cljdoc.edn
# 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 +$(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:
lein with-profile +$(VERSION) deploy clojars
clean:
lein clean