-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
36 lines (24 loc) · 870 Bytes
/
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
.PHONY: test eastwood cljfmt release deploy clean
VERSION ?= 1.10
NREPL_VERSION ?= nrepl-0.6
test:
lein with-profile -user,+$(VERSION),+$(NREPL_VERSION) test;
eastwood:
lein with-profile -user,+$(VERSION),+eastwood eastwood
cljfmt:
lein with-profile -user,+$(VERSION),+cljfmt cljfmt check
cljfmt-fix:
lein with-profile -user,+$(VERSION),+cljfmt cljfmt fix
# 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 -user,+$(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 -user,+$(VERSION) deploy clojars
clean:
lein clean