forked from helium/blockchain-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNUmakefile
46 lines (34 loc) · 1.22 KB
/
GNUmakefile
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
.PHONY: compile test typecheck ci
grpc_services_directory=src/grpc/autogen
REBAR=./rebar3
compile: | $(grpc_services_directory)
$(REBAR) compile
clean:
rm -rf $(grpc_services_directory)
$(REBAR) clean
test: compile
$(REBAR) as test do eunit, ct,xref && $(REBAR) dialyzer
typecheck:
$(REBAR) dialyzer
cover:
$(REBAR) cover
ci: | $(grpc_services_directory)
$(REBAR) dialyzer && $(REBAR) do eunit, ct
$(REBAR) do cover,covertool generate
codecov --required -f _build/test/covertool/blockchain.covertool.xml
ci-nightly: | $(grpc_services_directory)
$(REBAR) do eunit,ct,eqc -t 600
cp -f _build/eqc/cover/eqc.coverdata _build/test/cover/
$(REBAR) do cover,covertool generate
codecov --required -f _build/test/covertool/blockchain.covertool.xml
grpc: | $(grpc_services_directory)
@echo "generating grpc services"
REBAR_CONFIG="config/grpc_server_gen.config" $(REBAR) grpc gen
REBAR_CONFIG="config/grpc_txn_client_gen.config" $(REBAR) grpc gen
REBAR_CONFIG="config/grpc_client_gen.config" $(REBAR) grpc gen
clean_grpc:
@echo "cleaning blockchain core grpc services"
rm -rf $(grpc_services_directory)
$(grpc_services_directory):
@echo "blockchain core grpc service directory $(directory) does not exist"
$(REBAR) get-deps