forked from Kyorai/riak_core
-
Notifications
You must be signed in to change notification settings - Fork 4
/
rebar.config
75 lines (68 loc) · 2.27 KB
/
rebar.config
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
{erl_first_files, ["src/gen_nb_server.erl", "src/riak_core_gen_server.erl",
"src/riak_core_stat_xform"]}.
%{cover_enabled, true}.
{erl_opts, [warnings_as_errors, {parse_transform, lager_transform},
debug_info, {platform_define, "^[0-9]+", namespaced_types},
{platform_define, "18", old_rand},
{platform_define, "17", old_rand},
{platform_define, "^R15", old_hash}]}.
{edoc_opts, [{preprocess, true}]}.
{eunit_opts, [verbose]}.
{xref_checks, []}.
{xref_queries, [{"(XC - UC) || (XU - X - B - \"(cluster_info|dtrace)\" : Mod)", []}]}.
{deps, [
%% Stuff we need to work with rebar3
{goldrush, "~>0.1.8"},
{cuttlefish, "~>2.0.11"},
{clique, "~>0.3.9"},
%% We now include folsom
folsom,
%% Normal deps
{lager, "~>3.2.4"},
{poolboy, "0.8.2", {pkg, basho_poolboy}},
{basho_stats, "~>1.0.3"},
{riak_sysmon, "~>2.1.5"},
%% {riak_ensemble, ".*", {git, "https://github.com/basho/riak_ensemble", {tag, "2.1.8"}}},
{riak_ensemble, "~>2.4.0", {pkg, riak_ensemble_ng}},
{pbkdf2, "~>2.0.0"},
{jam, "~>1.0.0"},
{blume, "~>0.1.0"},
{chash, "~>0.1.1"},
{eleveldb, "~>2.2.20"},
{exometer_core, "~>1.0.0", {pkg, basho_exometer_core}}
]}.
%%-------------------------------------------------------------------
%% Profiles
%%-------------------------------------------------------------------
{profiles,
[{test, [{deps,
[{mustache, ".*", {git, "https://github.com/mojombo/mustache.erl.git", {tag, "v0.1.1"}}}]}]},
{docs, [{deps, [{edown, "0.7.0"}]}]},
{eqc, [{erl_opts, [{d, 'TEST'}]}, {deps, [meck]}, {plugins, [rebar_eqc]}]},
{prod, [{relx, [{dev_mode, false}]}]},
{lint,
[{plugins,
[{rebar3_lint,
{git, "https://github.com/project-fifo/rebar3_lint.git",
{tag, "0.1.4"}}}]}]}
]}.
{overrides,
[
%% R19
{override, pooler,
[{erl_opts,
[{platform_define, "^[0-9]+", namespaced_types},
debug_info,
inline]}]},
%% Normal
{override, setup, [{post_hooks, []}]},
{override, eleveldb,
[{pre_hooks, [{compile, "c_src/build_deps.sh get-deps"},
{compile, "c_src/build_deps.sh"}]},
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]},
{plugins,
[pc]},
{provider_hooks,
[{post,
[{compile, {pc, compile}},
{clean, {pc, clean}}]}]}]}]}.