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
|
{relx, [
{release,
{cdapbroker,"4.0.5"},
[cdapbroker]
},
%{extend_start_script,true},
%
%for the following two fancyiness see https://www.rebar3.org/docs/releases
%Supply our own vm.args
{vm_args, "config/vm.args"},
%supply our own application configuration
{sys_config, "config/sys.config"}
]}.
{deps, [
{jiffy, ".*", {git, "git://github.com/davisp/jiffy.git", {branch, "master"}}},
%{leptus, ".*", {git, "git://github.com/s1n4/leptus.git", {branch, "master"}}},
{leptus, ".*", {git, "git://github.com/tommyjcarpenter/leptus.git", {branch, "version"}}},
{lager, ".*", {git, "git://github.com/basho/lager.git", {branch, "master"}}},
%generate RFC compliant UUIDs
{uuid, ".*", {git, "https://github.com/avtobiff/erlang-uuid.git", {branch, "master"}}},
%generate ISO8601 timestamps
{iso8601, {git, "https://github.com/erlsci/iso8601.git", {tag, "1.2.3"}}}
]}.
%%% Require OTP 19.2 at a bare minimum
{minimum_otp_vsn, "19"}.
%% Plugins
{shell, [
{apps, [lager, sync, gen_rpc]}
]}.
% Erlang options
{erl_opts,
[
%%lager first
%%support lager introspecting module/line/function
{parse_transform, lager_transform},
%%support EELF sinks
{lager_extra_sinks, [audit,metrics,error]},
%other opts
%warnings_as_errors,
debug_info,
{warn_format, 1},
bin_opt_info,
inline_list_funcs,
report_warnings,
warn_export_vars,
warn_export_all,
warn_shadow_vars,
warn_obsolete_guard,
warn_unused_import,
warn_deprecated_function,
warn_unused_vars,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_exported_vars
]
}.
%% Code coverage
{cover_enabled, true}.
{cover_export_enabled, true}.
{cover_opts, [verbose]}.
%% EUnit options
{eunit_compile_opts, [debug_info, export_all]}.
{eunit_opts, [verbose,
no_tty,
{report, {eunit_progress, [colored, profile]}}
]}.
|