-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (49 loc) · 1.11 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
59
60
61
62
63
64
65
.DEFAULT_GOAL := all
DOCKER_USER := starcrust
PROJECT := seppen
NODE := [email protected]
COOKIE := snowflake
.PHONY: all
all: format-check build test
.PHONY: format
format:
rebar3 fmt --write
.PHONY: format-check
format-check:
rebar3 fmt --check
.PHONY: build
build:
rebar3 compile
.PHONY: test
test: eunit ct dist
.PHONY: eunit
eunit:
rebar3 eunit
.PHONY: ct
ct:
rebar3 ct --name $(NODE) --setcookie $(COOKIE) --suite seppen_SUITE
.PHONY: dist
dist:
rebar3 ct --name [email protected] --setcookie $(COOKIE) --suite seppen_dist_SUITE --readable true -v
.PHONY: dist_clean
dist_clean:
kill $(shell ps aux | grep '\-name [c]t' | awk '{print $$2}')
.PHONY: release
release:
rebar3 release
.PHONY: run
run: release
$(CURDIR)/_build/default/rel/seppen/bin/seppen foreground
.PHONY: docker
docker:
docker build -t $(DOCKER_USER)/$(PROJECT) .
.PHONY: shell
shell:
rebar3 shell --name $(NODE) --setcookie $(COOKIE) --apps=$(PROJECT)
.PHONY: clean
clean:
rm -rf $(CURDIR)/_build/default/rel
rm -rf $(CURDIR)/_build/default/lib/seppen
rm -rf $(CURDIR)/_build/test
rm -rf $(CURDIR)/_build/prod
rebar3 clean