-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (59 loc) · 1.85 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
66
67
68
69
70
71
all: compile dialyzer test
###===================================================================
### build
###===================================================================
.PHONY: co compile es escriptize run
export PROFILE=release
co:compile
compile:
./rebar3 compile
redis_api:
## debug
cargo build -p redis_api
## release
cargo build -p redis_api --release
es:escriptize
escriptize: clean
./rebar3 escriptize
### clean
.PHONY: clean distclean
clean:
./rebar3 clean
distclean:
./rebar3 clean -a
###===================================================================
### test
###===================================================================
.PHONY: test eunit ct testclean
test: epmd dialyzer
sh crates/build_crates.sh test
./rebar3 do eunit --dir test/eunit -v
./rebar3 do ct --dir test/ct --config test/ct/ct.config --sys_config config/test.config -v
eunit: epmd
./rebar3 do eunit --dir test/eunit -v
redis: epmd
./rebar3 do ct --dir test/ct --suite big_data_redis_SUITE -v --config test/ct/ct.config --sys_config config/test.config
ct: epmd
sh crates/build_crates.sh clippy
sh crates/build_crates.sh test
./rebar3 do ct --dir test/ct --suite big_data_local_SUITE -v --config test/ct/ct.config --sys_config config/test.config
./rebar3 do ct --dir test/ct --suite bd_log_wal_SUITE -v --config test/ct/ct.config --sys_config config/test.config
testclean:
@rm -fr _build/test
shell: epmd config
./rebar3 as test shell
config: epmd
# ./tool.sh replace_config
dialyzer: epmd
sh crates/build_crates.sh clippy
./rebar3 do dialyzer
tar: epmd
rm -rf _build/prod
./rebar3 as prod release
./rebar3 as prod tar
###===================================================================
### other
###===================================================================
.PHONY: epmd
epmd:
@pgrep epmd 2> /dev/null > /dev/null || epmd -daemon || true