File: Makefile

package info (click to toggle)
nrepl-clojure 1.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,996 kB
  • sloc: makefile: 50; java: 19; sh: 15; xml: 10
file content (53 lines) | stat: -rw-r--r-- 1,526 bytes parent folder | download
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
.PHONY: test docs eastwood cljfmt cloverage release deploy clean

VERSION ?= 1.10

test:

# We use kaocha on Clojure 1.9+, but revert to lein's built in
# runner with Clojure 1.7 and 1.8.

ifeq ($(VERSION),$(filter $(VERSION),1.9 1.10 master))
	lein with-profile -user,+$(VERSION),+test run -m kaocha.runner
	lein with-profile -user,+$(VERSION),+test,+junixsocket run -m kaocha.runner
else
	lein with-profile -user,+$(VERSION),+test test
	lein with-profile -user,+$(VERSION),+test,+junixsocket test
endif

eastwood:
	lein with-profile -user,+$(VERSION),+eastwood eastwood

cljfmt:
	lein with-profile -user,+$(VERSION),+cljfmt cljfmt check

kondo:
	lein with-profile +clj-kondo run -m clj-kondo.main --lint src

cloverage:
	lein with-profile -user,+$(VERSION),+cloverage cloverage --codecov

# Roughly match what runs in CI using the current JVM
check: test eastwood kondo cljfmt cloverage

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 -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