-
-
Notifications
You must be signed in to change notification settings - Fork 645
/
Makefile
37 lines (26 loc) · 1.04 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
.PHONY: clean compile lint test-all test-integration test-unit
.DEFAULT_GOAL := test
# Per our CircleCI, linting/compiling assumes Emacs 28.
# If you primarily use a different version, you can download Emacs 28 to a separate directory and set up:
# export ELDEV_EMACS="$HOME/emacs28/Emacs.app/Contents/MacOS/Emacs"
# Remove byte-compilation artifacts, which can alter the result of the test suite:
clean:
eldev clean
# You can find a generic `eldev` installation script in https://github.com/emacs-eldev/eldev/blob/master/webinstall/eldev
# (Don't use the one defined for CircleCI in your local machine)
lint: clean
eldev lint -c
# Checks for byte-compilation warnings.
compile: clean
eldev -dtT compile --warnings-as-errors
test/File.edn:
cd dev; ../clojure.sh clojure -M:gen
test-all: clean test/File.edn
eldev -dtT -p test --test-type all
test-enrich: clean test/File.edn
eldev -dtT -p test --test-type enrich
test-integration: clean
eldev -dtT -p test --test-type integration
test-unit: clean
eldev -dtT -p test
test: lint test-unit compile