-
Notifications
You must be signed in to change notification settings - Fork 69
/
Makefile
63 lines (46 loc) · 1.67 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
.PHONY: inline-deps test deploy clean
VERSION ?= 1.11
clean:
lein clean
rm -f .inline-deps
.inline-deps: clean
lein with-profile -user,-dev,+$(VERSION) inline-deps
touch .inline-deps
inline-deps: .inline-deps
fast-test: clean
lein with-profile -user,-dev,+$(VERSION) test
quick-test: fast-test
test: .inline-deps
lein with-profile -user,-dev,+$(VERSION),+plugin.mranderson/config test
cljfmt:
lein with-profile -user,-dev,+$(VERSION),+cljfmt cljfmt check
cljfmt-fix:
lein with-profile -user,-dev,+$(VERSION),+cljfmt cljfmt fix
eastwood:
lein with-profile -user,-dev,+$(VERSION),+deploy,+test,+eastwood eastwood
kondo:
lein with-profile -user,-dev,+$(VERSION),+clj-kondo run -m clj-kondo.main --lint src test
# Deployment is performed via CI by creating a git tag prefixed with "v".
# Please do not deploy locally as it skips various measures (particularly around mranderson).
deploy: check-env .inline-deps
lein with-profile -user,-dev,+$(VERSION),+plugin.mranderson/config deploy clojars
jar: .inline-deps
lein with-profile -user,-dev,+$(VERSION),+plugin.mranderson/config jar
# Usage: PROJECT_VERSION=3.10.0 make install
# PROJECT_VERSION is needed because it's not computed dynamically
install: check-install-env .inline-deps
LEIN_JVM_OPTS="-Dmranderson.internal.no-parallelism=true" lein with-profile -user,-dev,+$(VERSION),+plugin.mranderson/config install
check-env:
ifndef CLOJARS_USERNAME
$(error CLOJARS_USERNAME is undefined)
endif
ifndef CLOJARS_PASSWORD
$(error CLOJARS_PASSWORD is undefined)
endif
ifndef CIRCLE_TAG
$(error CIRCLE_TAG is undefined)
endif
check-install-env:
ifndef PROJECT_VERSION
$(error Please set PROJECT_VERSION as an env var beforehand.)
endif