This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
151 lines (111 loc) · 6.47 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
REBAR=rebar3
BENCH=_build/test/lib/lasp_bench
all: compile rel
attach:
./_build/default/rel/fmke/bin/env attach
bench-results:
Rscript --vanilla _build/test/lib/lasp_bench/priv/summary.r -i tests/current
compile:
${REBAR} as test compile
console: rel
./_build/default/rel/fmke/bin/env console
coverage: eunit ct
${REBAR} cover --verbose
ct:
${REBAR} ct --suite fmke_antidote_transactions_SUITE.erl --cover --cover_export_name=antidote_txn_check
${REBAR} ct --suite fmke_db_conn_manager_SUITE.erl --cover --cover_export_name=db_conn_manager
${REBAR} ct --suite fmke_unstable_db_conn_SUITE.erl --cover --cover_export_name=unstable_db_conn
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/antidote_non_nested_data_model.config --cover --cover_export_name=core_antidote_non_nested_opt
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/cassandra_non_nested_data_model.config --cover --cover_export_name=core_cassandra_non_nested_opt
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/ets_nested_data_model.config --cover --cover_export_name=core_ets_nested
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/ets_non_nested_data_model.config --cover --cover_export_name=core_ets_non_nested
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/redis_cluster_non_nested_data_model.config --cover --cover_export_name=core_redis_cluster_non_nested_opt
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/redis_crdb_non_nested_data_model.config --cover --cover_export_name=core_redis_crdb_non_nested_opt
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/riak_non_nested_data_model.config --cover --cover_export_name=core_riak_non_nested_opt
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/aql_non_nested_data_model.config --cover --cover_export_name=core_aql_non_nested_opt
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/antidote_non_nested_data_model.config --cover --cover_export_name=http_antidote_non_nested_opt
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/cassandra_non_nested_data_model.config --cover --cover_export_name=http_cassandra_non_nested_opt
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/ets_nested_data_model.config --cover --cover_export_name=http_ets_nested
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/ets_non_nested_data_model.config --cover --cover_export_name=http_ets_non_nested
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/redis_cluster_non_nested_data_model.config --cover --cover_export_name=http_redis_cluster_non_nested_opt
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/redis_crdb_non_nested_data_model.config --cover --cover_export_name=http_redis_crdb_non_nested_opt
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/riak_non_nested_data_model.config --cover --cover_export_name=http_riak_non_nested_opt
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/aql_non_nested_data_model.config --cover --cover_export_name=http_aql_non_nested_opt
ct-antidote:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/antidote_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/antidote_non_nested_data_model.config
ct-cassandra:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/cassandra_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/cassandra_non_nested_data_model.config
ct-ets:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/ets_nested_data_model.config
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/ets_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/ets_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/ets_non_nested_data_model.config
ct-redis-cluster:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/redis_cluster_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/redis_cluster_non_nested_data_model.config
ct-redis:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/redis_crdb_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/redis_crdb_non_nested_data_model.config
ct-riak:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/riak_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/riak_non_nested_data_model.config
ct-aql:
${REBAR} ct --suite fmke_core_unit_test_SUITE.erl --config test/fmke_configs/aql_non_nested_data_model.config
${REBAR} ct --suite fmke_http_api_SUITE.erl --config test/fmke_configs/aql_non_nested_data_model.config
dialyzer:
${REBAR} dialyzer
eunit:
${REBAR} eunit
lint:
rebar3 as lint lint
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: rel
./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: all eunit ct
xref:
rebar3 xref