-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrebar.config
54 lines (47 loc) · 1.47 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
{src_dirs, ["src"]}.
{deps, [
{mqtt_common, {git, "https://github.com/alekras/erl.mqtt.common", {branch, "master"}}},
{websocket_client, {git, "https://github.com/jeremyong/websocket_client.git", {branch, "master"}}}
%% For Hex publishing
% {mysql_client, "1.2.8"},
% {lager, "3.8.0"},
]}.
{erl_opts, [
no_debug_info,
{parse_transform, lager_transform}
%% ,{d, 'TEST'}
]}.
{overrides, [{override, mqtt_common, [{erl_opts, [no_debug_info,{parse_transform, lager_transform},{d, 'TEST'}]}]}]}.
{cover_enabled, false}.
{clean_files, ["doc/*"]}.
{edoc_opts, [
{def, [{version, "2.1.0"}]},
{private, false},
{source_path, ["src"]},
{title, "MQTT client for Erlang"},
{overview, "src/overview.edoc"},
{sort_functions, false},
{stylesheet_file, "priv/my.css"},
{preprocess, true},
{includes, ["include", "_build/default/lib/mqtt_common/include"]}
]}.
{plugins, [rebar3_hex]}.
{profiles, [
{prod, [
{relx, [
{dev_mode, false},
{include_erts, true},
{include_src, false}
]}
]},
{test, [
{src_dirs, ["src","test","test/v3","test/v5"]},
{eunit_compile_opts, [{src_dirs, ["src","test","test/v3","test/v5"]}]},
{eunit_tests, [{dir, "test"}, {dir, "test/v3"}, {dir, "test/v5"}]},
{eunit_opts, [verbose]},
{overrides, [{override, mqtt_common, [{erl_opts, [no_debug_info,{parse_transform, lager_transform},{d, 'TEST'}]}]}]},
{deps, [
{mysql_client, {git, "git://git.code.sf.net/p/erlmysql/git", {branch, master}}}
]}
]}
]}.