forked from helium/packet-purchaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 1.09 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
.PHONY: compile clean test rel run docker-build docker-test docker-run docker-exec
REBAR=./rebar3
compile:
$(REBAR) compile && $(REBAR) format
clean:
git clean -dXfffffffffff
test:
$(REBAR) fmt --verbose --check rebar.config
$(REBAR) fmt --verbose --check "{src,include,test}/**/*.{hrl,erl,app.src}"
$(REBAR) fmt --verbose --check "config/{test,sys}.{config,config.src}"
$(REBAR) xref
$(REBAR) eunit
$(REBAR) ct
$(REBAR) dialyzer
rel:
$(REBAR) release
run:
_build/default/rel/packet_purchaser/bin/packet_purchaser foreground
docker-build:
docker build -f Dockerfile-local --force-rm -t quay.io/team-helium/packet_purchaser:local .
docker-test:
docker run --rm -it --init --name=helium_packet_purchaser_test quay.io/team-helium/packet_purchaser:local make test
docker-run:
docker run --rm -it --init --env-file=.env --network=host --mount "type=bind,source=$(CURDIR)/data,target=/var/data" --name=helium_packet_purchaser quay.io/team-helium/packet_purchaser:local
docker-exec:
docker exec -it helium_packet_purchaser _build/default/rel/packet_purchaser/bin/packet_purchaser remote_console