-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
57 lines (40 loc) · 782 Bytes
/
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
PACKAGE = tricks
REBAR = rebar3
HOME = $(shell pwd)
.PHONY: test rel
all: compile
##
## Compilation targets
##
compile:
$(REBAR) compile
##
## Test targets
##
check: test xref dialyzer lint
test: eunit ct
${REBAR} cover -v
eunit:
${REBAR} eunit
ct: clear
TRICKS_HOME=${HOME} \
K8S_API_SERVER=$(shell bin/k8s_api_server.sh) \
K8S_API_TOKEN=$(shell bin/k8s_api_token.sh) \
${REBAR} ct --readable=false --verbose
cover: test
open _build/test/cover/index.html
xref:
${REBAR} xref skip_deps=true
dialyzer:
${REBAR} dialyzer
lint:
${REBAR} as lint lint
shell:
${REBAR} shell --apps ${PACKAGE}
rel:
rm -rf _build/default/rel/
${REBAR} release
logs:
tail -F .lager/*/log/*.log
clear:
pkill -9 beam.smp ; rm -rf .lager test/.rebar3 *.xml