-
Notifications
You must be signed in to change notification settings - Fork 3
/
rebar.config
45 lines (39 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
{project_plugins, [rebar3_hex, rebar3_ex_doc, rebar3_codecov, rebar3_format, erlfmt]}.
{erl_opts, [debug_info]}.
{deps, [thoas]}.
{format, [
{files, [
"src/*.{erl,hrl,app.src}",
"rebar.config"
]},
{ignore, ["{apps,src}/**/src/proto/*.erl"]},
{formatter, erlfmt_formatter}
]}.
{ct_readable, true}.
{cover_enabled, true}.
{cover_excl_mods, [pactffi_nif, pact_utils]}.
{pre_hooks, [
{ct, "bash ./shell_scripts/pre_ct.sh"},
{"(linux|darwin|solaris)", compile, "make --no-print-directory -C c_src"},
{"(freebsd)", compile, "gmake -C c_src"}
]}.
{post_hooks, [
{"(linux|darwin|solaris)", clean, "make --no-print-directory -C c_src clean"},
{"(freebsd)", clean, "gmake -C c_src clean"}
]}.
{provider_hooks, [{post, [{ct, {codecov, analyze}}]}]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
deprecated_function_calls,
deprecated_functions
]}.
{ex_doc, [
{source_url, <<"https://github.com/greyorange-labs/pact-erlang">>},
{homepage_url, <<"https://hexdocs.pm/pact_erlang">>},
{extras, [<<"README.md">>, <<"CHANGELOG.md">>, <<"LICENSE">>]},
{main, <<"readme">>},
{prefix_ref_vsn_with_v, false},
{api_reference, false}
]}.
{hex, [{doc, ex_doc}]}.