-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebar.config
115 lines (98 loc) · 3.03 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
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
{alias, [
{check, [
xref, dialyzer, %gradualizer,
eunit,
ct, proper, {cover, "-v"}
]}
]}.
{deps, [
gproc,
{tomerl, "0.5.0"},
{itc, "1.0.0", {pkg, interval_tree_clocks}},
{uuid, "2.0.0", {pkg, uuid_erl}},
recon,
{tak, {git, "https://github.com/ferd/tak.git", {branch, "master"}}},
{aws, "1.0.6", {pkg, aws_erlang}},
{opentelemetry_api, {git_subdir, "http://github.com/open-telemetry/opentelemetry-erlang", {branch, "main"}, "apps/opentelemetry_api"}},
{opentelemetry, {git_subdir, "http://github.com/open-telemetry/opentelemetry-erlang", {branch, "main"}, "apps/opentelemetry"}},
{opentelemetry_exporter, {git_subdir, "http://github.com/open-telemetry/opentelemetry-erlang", {branch, "main"}, "apps/opentelemetry_exporter"}}
]}.
{erl_opts, [
debug_info,
{feature,maybe_expr,enable}
]}.
{ct_opts, [
%% for CI
{ct_hooks, [cth_surefire]},
%% we work a lot with dir scans, so one per test is a good idea
{create_priv_dir, auto_per_tc}
]}.
{project_plugins, [
rebar3_proper,
{gradualizer, {git, "https://github.com/josefs/Gradualizer.git", {branch, "master"}}}
]}.
{cover_enabled, true}.
{cover_opts, [verbose, {min_coverage, 75}]}.
{dialyzer, [
{warnings, [
%% Warn about undefined types and unknown functions
unknown
]},
{exclude_mods, [revault_app]}
]}.
{xref_checks,[
undefined_function_calls, undefined_functions, locals_not_used,
deprecated_function_calls, deprecated_functions
]}.
{profiles, [
{prod, [
{relx, [{dev_mode, false}, {include_erts, true}]},
{project_app_dirs, ["apps/*", "lib/*", "cli/*", "."]},
{escript_incl_apps, [revault_cli, argparse]},
{escript_main_app, revault_cli},
{escript_name, revault_cli},
{escript_emu_args, "%%! -name cli -setcookie revault_cookie +sbtu +A1\n"}
]},
{portable, [
%% meant to be run on a pre-built Erlang system on any supported OS
{relx, [
{include_src, false},
{debug_info, keep},
{dev_mode, false},
{include_erts, false},
{system_libs, false}
]}
]},
{debug, [
%% generate debug traces in gen_* processes
{erl_opts, [{d, 'TEST'}]}
]},
{test, [
{relx, [{sys_config, "./config/test.sys.config"},
{dev_mode, false},
{mode, prod}
]},
{erl_opts, [nowarn_export_all]},
{deps, [proper, meck]},
%% required for distributed tests
{dist_node, [
{name, '[email protected]'}
]}
]}
]}.
{pre_hooks, [
{proper, "rm -rf _build/test/scratch/"}
]}.
{relx, [{release, {revault, "0.1.0"},
[opentelemetry_exporter,
opentelemetry,
revault, maestro,
recon,
{aws, load},
sasl]},
{sys_config, "./config/sys.config"},
{vm_args_src, "./config/vm.args.src"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}]
}.