-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrebar.config
46 lines (45 loc) · 1.37 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
{erl_opts, [
% {parse_transform, lager_transform},
warn_export_all,
warn_export_vars,
warn_obsolete_guard,
warn_shadow_vars,
warn_unused_function,
warn_deprecated_function,
warn_unused_import,
warnings_as_errors
]}.
{minimum_otp_vsn, "22"}.
{eunit_opts, [export_all]}.% same as options for eunit:test(Tests, ...)
{eunit_tests, [{application,sui}]}. % same as Tests argument in eunit:test(Tests, ...)
{ct_compile_opts, [{parse_transform, cth_readable_transform}]}.
{ct_opts, [{ct_hooks, [cth_readable_failonly, cth_readable_shell]}]}.
{eunit_compile_opts, [ % to avoid 'do eunit, ct' eating up the parse transform
{parse_transform, cth_readable_transform}
]}.
{shell, [{apps, [sui]}]}.
{cover_enabled, true}.
{dist_node, [
{name, '[email protected]'},
{setcookie, 'xxxx'}
]}.
{deps, [
]}.
{profiles, [
{test, [{erl_opts, [
{parse_transform, lager_transform},
{d, 'TEST'},nowarn_export_all, export_all,{i, "test/eunit"} ]},
{shell, [{config, "config/sys.config"}]},
{deps, [jsx, recon, meck, lager,
{cth_readable, {git, "https://github.com/ferd/cth_readable.git", {tag, "v1.5.1"}}}
]}]}
]}.
{pre_hooks, [
{compile, "sh crates/build_crates.sh build"}
]}.
{ex_doc, [
{source_url, <<"https://github.com/yangcancai/sui">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"readme">>}
]}.
{hex, [{doc, edoc}]}.