-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
44 lines (34 loc) · 1.15 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
export EMACS ?= $(shell which emacs)
CASK_DIR := $(shell cask package-directory)
$(CASK_DIR): Cask
cask install
@touch $(CASK_DIR)
.PHONY: cask
cask: $(CASK_DIR)
.PHONY: compile
compile: cask
cask emacs -batch -L . -L test \
--eval "(setq byte-compile-error-on-warn t)" \
-f batch-byte-compile $$(cask files); \
(ret=$$? ; cask clean-elc && exit $$ret)
.PHONY: checkdoc
checkdoc:
cask emacs -batch --eval "(checkdoc-file \"kele.el\")"
.PHONY: package-lint
package-lint:
cask emacs -batch --eval "(setq package-lint-batch-fail-on-warnings nil)" -f package-lint-batch-and-exit kele.el
.PHONY: test
test: compile
cask clean-elc
cask exec buttercup -L . tests/unit/
.PHONY: all
testall: checkdoc package-lint test
.PHONY: test-cluster-create
test-cluster-create: test-cluster-stop
kind create cluster --kubeconfig ./tests/kubeconfig.yaml --config ./tests/test-cluster.yaml
.PHONY: integration-test
integration-test: test-cluster-create
KUBECONFIG=./tests/kubeconfig.yaml cask exec buttercup -L . tests/integration/
.PHONY: test-cluster-stop
test-cluster-stop:
kind delete cluster --kubeconfig ./tests/kubeconfig.yaml --name kele-test-cluster0