-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrebar.config
56 lines (47 loc) · 1.22 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
%%%%%%%%%% TEMPLATE: required %%%%%%%%%%
{erl_opts, [debug_info]}.
{deps, []}.
% To generate appups automatically thanks to the appup_plugin
{plugins, [
{rebar3_appup_plugin,
{git, "https://github.com/lrascao/rebar3_appup_plugin", {branch, "develop"}}}
]}.
{project_plugins, [erlfmt]}.
{provider_hooks, [
{pre, [{tar, {appup, tar}}]},
{post, [
{compile, {appup, compile}},
{clean, {appup, clean}}
]}
]}.
% Export common test results as XML
{ct_opts, [{ct_hooks, [cth_surefire]}]}.
% TODO: Replace release_name with the name of your project/release
{relx, [
{release, {release_name, "0.0.1"}, [
sasl,
release_name
]},
{include_src, false},
{include_erts, true}, % To be able to run the releases from the docker containers in relup-ci
{debug_info, keep},
{dev_mode, false}
]}.
% Test profile
{profiles, [
{test, [
{erl_opts, [nowarn_export_all]}
]}
]}.
%%%%%%%%%% TEMPLATE: optional %%%%%%%%%%
% Add coverage
{cover_enabled, true}.
{cover_opts, [verbose]}.
% Tell xref what checks to perform
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.