-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
executable file
·63 lines (55 loc) · 1.92 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
%% == Erlang Compiler ==
%% Erlang files to compile before the rest. Rebar automatically compiles
%% parse_transforms and custom behaviours before anything other than the files
%% in this list.
{erl_opts, [no_debug_info]}.
%% == Common Test ==
%% {erl_opts, [...]}, but for CT runs
{ct_compile_opts, []}.
%% {erl_first_files, ...} but for CT runs
{ct_first_files, []}.
%% Same options as for ct:run_test(Opts) (sys_config is extra)
{ct_opts, [{sys_config, ["./config/test.config"]}]}.
%% == Dependencies ==
%% What dependencies we have, dependencies can be of 3 forms, an application
%% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
%% an application name, a version and the SCM details on how to fetch it (SCM
%% type, location and revision).
%% Rebar3 currently supports git and hg
{deps, [
{nnet, {git, "git://github.com/BorjaEst/nnet.git", {branch, "master"}}},
{datalog, {git, "git://github.com/BorjaEst/datalog.git", {branch, "jiffy-rebar3"}}},
{numerl, {git, "git://github.com/BorjaEst/numerl.git", {branch, "master"}}}
]}.
%% == Shell ==
%% apps to auto-boot with `rebar3 shell'; defaults to apps
%% specified in a `relx' tuple, if any.
{shell, [
{config, "./config/sys.config"},
{apps, [nnet, datalog, mnesia, enn]}
]}.
%% == Profiles ==
{profiles, [
{prod, [
{erl_opts, [no_debug_info, warnings_as_errors]},
{relx, [
{dev_mode, false},
{include_erts, true},
{sys_config, "./config/prod.config"}
]}
]},
{test, [
{deps, []},
{erl_opts, [
nowarn_export_all,
% {d, debug_activation},
% {d, debug_aggregation},
% {d, debug_initialization},
% {d, debug_cortex_states},
% {d, debug_cortex_requests},
% {d, debug_propagation},
% {d, debug_neurons_status},
debug_info
]}
]}
]}.