forked from goncalotomas/FMKe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
157 lines (115 loc) · 3.45 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
REBAR = rebar3
BENCH=_build/test/lib/lasp_bench
all: compile rel
attach:
./_build/default/rel/fmke/bin/env attach
bench: compile
./travis.sh bench short antidote
./travis.sh bench short antidote_norm
./travis.sh bench short redis
./travis.sh bench short riak
./travis.sh bench short riak_norm
bench-antidote: rel
./travis.sh bench normal antidote
bench-antidote-norm: rel
./travis.sh bench normal antidote_norm
bench-redis: rel
./travis.sh bench normal redis
bench-results:
Rscript --vanilla _build/test/lib/lasp_bench/priv/summary.r -i tests/current
bench-riak: rel
./travis.sh bench normal riak
bench-riak-norm: rel
./travis.sh bench normal riak_norm
compile:
${REBAR} as test compile
cd ./_build/test/lib/lasp_bench && rebar3 escriptize
console: rel
./_build/default/rel/fmke/bin/env console
ct: all
./travis.sh ct antidote
./travis.sh ct antidote_norm
./travis.sh ct redis
./travis.sh ct riak
./travis.sh ct riak_norm
ct-antidote: rel
./travis.sh ct antidote
ct-antidote-norm: rel
./travis.sh ct antidote_norm
ct-redis: rel
./travis.sh ct redis
ct-riak: rel
./travis.sh ct riak
ct-riak-norm: rel
./travis.sh ct riak_norm
dialyzer:
${REBAR} dialyzer
kv_driver_test:
ct_run -pa ./_build/default/lib/*/ebin -logdir logs -suite test/ct/kv_driver_SUITE
populate: compile
./scripts/populate_fmke.erl "antidote" "../config/fmke_travis.config" "[email protected]"
rel: relclean
rm -rf _build/default/rel/
${REBAR} release -n fmke
relclean:
rm -rf _build/default/rel
select-antidote:
./scripts/config/change_db.sh antidote
select-antidote-norm:
./scripts/config/change_db.sh antidote_norm
select-redis:
./scripts/config/change_db.sh redis
select-riak:
./scripts/config/change_db.sh riak
select-riak-norm:
./scripts/config/change_db.sh riak_norm
shell:
${REBAR} shell --apps fmke --name [email protected] --setcookie fmke
shell-antidote: rel
./scripts/start_data_store.sh antidote
./_build/default/rel/fmke/bin/env console
shell-redis: rel
./scripts/start_data_store.sh redis
./_build/default/rel/fmke/bin/env console
shell-riak: rel
./scripts/start_data_store.sh riak
./_build/default/rel/fmke/bin/env console
start:
./scripts/start_fmke.sh
start-antidote: select-antidote
./scripts/start_data_store.sh antidote
start-antidote-norm: select-antidote-norm
./scripts/start_data_store.sh antidote
start-redis: select-redis
./scripts/start_data_store.sh redis
start-riak: select-riak
./scripts/start_data_store.sh riak
start-riak-norm: select-riak-norm
./scripts/start_data_store.sh riak
stop:
./scripts/stop_fmke.sh
stop-antidote:
./scripts/stop_data_store.sh antidote
stop-redis:
./scripts/stop_data_store.sh redis
stop-riak:
./scripts/stop_data_store.sh riak
test-multiple-releases:
rm -rf _build/default/rel
./scripts/start_data_store.sh antidote
./scripts/config/change_http_port.sh 9090
./scripts/config/change_db.sh antidote
./scripts/config/change_db_ports.sh antidote
${REBAR} release -n fmke
./_build/default/rel/fmke/bin/env start
sleep 10
./scripts/config/change_http_port.sh 9190
${REBAR} release -n fmke_test
./_build/default/rel/fmke_test/bin/env_test start
sleep 10
./scripts/populate_fmke.escript "antidote" "../config/benchmark_short.config" "[email protected]"
_build/test/lib/lasp_bench/_build/default/bin/lasp_bench config/benchmark_short.config
./scripts/config/change_http_port.sh 9090
./_build/default/rel/fmke/bin/env stop
./_build/default/rel/fmke_test/bin/env_test stop
./scripts/stop_data_store.sh antidote