-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
58 lines (45 loc) · 1.3 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
.PHONY: clean test install deploy nrepl fig-repl kondo eastwood lint
VERSION ?= 1.10
clean:
@-rm -rf target/public/cljs-out \
suitable.jar \
.cpcache \
target \
out \
.cljs_node_repl \
.rebel_readline_history
lein with-profile -user clean
test: clean
clojure -M:test:test-runner:$(VERSION)
kondo:
clojure -M:dev-figwheel:fig-repl:dev-shadow:test:kondo
eastwood:
clojure -M:dev-figwheel:fig-repl:dev-shadow:test:eastwood
lint: kondo eastwood
install: clean check-install-env
lein with-profile -user,-dev install
deploy: clean check-ci-env
lein with-profile -user,-dev deploy clojars
# starts a figwheel repl with suitable enabled
fig-repl:
clojure -M:fig-repl
# useful for development, see comment in src/dev/suitable/nrepl_figwheel.clj
nrepl-figwheel:
clojure -M:test:dev-figwheel
# useful for development, see comment in src/dev/suitable/nrepl_.clj
nrepl-shadow:
clojure -M:test:dev-shadow
check-ci-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. Please only perform deployments by publishing git tags. CI will do the rest.)
endif
check-install-env:
ifndef PROJECT_VERSION
$(error Please set PROJECT_VERSION as an env var beforehand.)
endif