forked from basho/bitcask
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
75 lines (65 loc) · 1.94 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_opts, [debug_info, warn_untyped_record,
{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^[2-9][1-9]\..*", dirty_file_nif}]}.
{minimum_otp_vsn, "22.0"}.
{port_specs, [{"priv/bitcask.so", ["c_src/*.c"]}]}.
{port_env,
[
{"DRV_CFLAGS",
"-g -Wall -fPIC $ERL_CFLAGS"},
%% Solaris specific flags
{"solaris.*-64$", "CFLAGS", "-D_REENTRANT -m64"},
{"solaris.*-64$", "LDFLAGS", "-m64"},
%% OS X Leopard flags for 64-bit
{"darwin9.*-64$", "CFLAGS", "-m64"},
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"}
]}.
{profiles,
[
{prod,
[
{erl_opts, [warnings_as_errors]}
]},
{gha, [{erl_opts, [{d, 'GITHUBEXCLUDE'}]}]},
{test,
[
{deps,
[meck,
{cuttlefish, {git, "https://github.com/OpenRiak/cuttlefish.git", {branch, "openriak-3.2"}}}
]},
{eunit_opts, [verbose]}
]},
{eqc,
[
{deps,
[meck, {faulterl, {git, "https://github.com/OpenRiak/faulterl", {branch, "openriak-3.2"}}}]},
{overrides,
[{override, faulterl, [
{plugins, [pc]},
{artifacts, ["priv/faulterl.so"]},
{provider_hooks, [
{post,
[{compile, {pc, compile}},
{clean, {pc, clean}}]
}]
}
]}
]}
]}
]}.
{plugins, [pc, {eqc_rebar, {git, "https://github.com/Quviq/eqc-rebar", {branch, "master"}}}]}.
{provider_hooks,
[
{pre,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]
}
]
}.
{xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
deprecated_function_calls, deprecated_functions]}.