-
Notifications
You must be signed in to change notification settings - Fork 20
/
rebar.config
73 lines (63 loc) · 2.46 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
%% vim:ft=erlang:
{minimum_otp_vsn, "24.0"}.
{deps, [{ra, "2.15.0"},
{horus, "0.3.0"}]}.
{project_plugins, [rebar3_proper,
covertool,
rebar3_hex,
{rebar3_edoc_extensions, "1.6.1"}]}.
{erl_opts, [debug_info,
warn_export_vars,
warnings_as_errors]}.
{erl_first_files, ["src/khepri_import_export.erl"]}.
{dialyzer, [{warnings, [underspecs,
unknown,
unmatched_returns]}]}.
{xref_checks, [undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions]}.
{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_print_enabled, true}.
{cover_export_enabled, true}.
{covertool, [{coverdata_files, ["eunit.coverdata",
"proper.coverdata",
"ct.coverdata"]}]}.
{edoc_opts, [{stylesheet, "stylesheet.css"},
{preprocess, true},
{includes, ["."]},
{sort_functions, false},
{doclet, edoc_doclet_chunks},
{layout, edoc_layout_chunks}]}.
{alias, [{check, [xref,
{eunit, "-c"},
{proper, "-c"},
{cover, "-v --min_coverage=75"},
%% FIXME: Dialyzer is only executed on the library by
%% default, not its testsuite. To run Dialyzer on the
%% testsuites as well, the following command must be used:
%% rebar as test dialyzer
dialyzer,
edoc]}]}.
{profiles,
[{test,
[{deps, [{proper, "1.4.0"},
%% FIXME: We need to add `cth_readable' as a dependency and an
%% extra app for Dialyzer. That's because Rebar is using that
%% application to override `ct:pal()' and Dialyzer complains it
%% doesn't know this application.
cth_readable]},
{dialyzer, [{plt_extra_apps, [common_test,
cth_readable, %% <-- See comment above.
edoc,
eunit,
inets,
mnesia,
proper,
ssl,
tools, %% <-- For `cover`.
xmerl]}]}
]}]}.
{hex, [{doc, edoc}]}.