-
Notifications
You must be signed in to change notification settings - Fork 4
/
rebar.config
executable file
·46 lines (44 loc) · 1.13 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
{relx, [
{release,
{mqtt_server, "2.1.0" },
[mqtt_server, mqtt_rest, sasl],
[
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{mode, prod},
{include_erts, false},
{extended_start_script, true}
]
},
{release,
{mqtt_server_dev, "2.1.0" },
[mqtt_server, mqtt_rest, sasl],
[
{sys_config, "./config-dev/sys.config"},
{vm_args, "./config-dev/vm.args"},
{mode, dev},
{extended_start_script, true},
{overlay, [
{mkdir, "tls_cnfg"},
{copy, "tls_cnfg/*", "tls_cnfg/"}
]}
]
}
]}.
{profiles, [
{prod, [
{relx, [
{mode, prod},
{include_erts, false}
]}
]},
{test, [
{eunit_compile_opts, [{src_dirs, ["apps/mqtt_rest/src", "apps/mqtt_server/src"]}]},
{eunit_tests, [{dir, "apps/mqtt_rest/test"}, {dir, "apps/mqtt_server/test"}, {dir, "apps/mqtt_server/test/v5"}]},
{eunit_opts, [verbose]},
{overrides, [{override, mqtt_common, [{erl_opts, [no_debug_info,{parse_transform, lager_transform},{d, 'TEST'}]}]}]},
{deps, [
{mqtt_client, {git, "https://github.com/alekras/mqtt_client.git", {branch, "master"}}}
]}
]}
]}.