forked from helium/gateway-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
113 lines (103 loc) · 3.35 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
%% -*- erlang -*-
{cover_enabled, true}.
{cover_export_enabled, true}.
{cover_excl_mods, [
gateway_gatt_char_assert_loc_pb,
gateway_gatt_char_wifi_services_pb,
gateway_gatt_char_wifi_connect_pb,
gateway_gatt_char_wifi_remove_pb,
gateway_gatt_char_add_gateway_pb
]}.
{erl_opts, [
{parse_transform, lager_transform},
debug_info,
warnings_as_errors,
{i, "./_build/default/plugins/gpb/include"}
]}.
{gpb_opts, [
{i, "src"},
{o_erl, "src/pb"},
{o_hrl, "src/pb"},
{msg_name_prefix, "gateway_"},
{msg_name_suffix, "_pb"},
{module_name_suffix, "_pb"},
{strings_as_binaries, false},
type_specs
]}.
{plugins, [
{rebar3_gpb_plugin, "2.19.1"}
]}.
{provider_hooks, [
{pre, [
{compile, {protobuf, compile}},
{clean, {protobuf, clean}}
]}
]}.
{deps, [
{erlang_ale, ".*", {git, "https://github.com/helium/erlang_ale", {branch, "master"}}},
{h3, ".*", {git, "https://github.com/helium/erlang-h3.git", {branch, "master"}}},
{gatt, ".*", {git, "https://github.com/helium/ebus-gatt", {branch, "master"}}},
{connman, ".*", {git, "https://github.com/helium/ebus-connman", {branch, "master"}}},
{clique, ".*", {git, "https://github.com/helium/clique.git", {branch, "develop"}}},
{libp2p_crypto, ".*", {git, "https://github.com/helium/libp2p_crypto.git", {branch, "master"}}},
{lager, "3.9.2"},
{helium_proto, {git, "https://github.com/helium/proto.git", {branch, "master"}}},
{grpc_client,
{git, "https://github.com/Bluehouse-Technology/grpc_client.git", {branch, "master"}}},
{http2_client,
{git, "https://github.com/Bluehouse-Technology/http2_client.git", {branch, "master"}}}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
deprecated_function_calls,
deprecated_functions
]}.
{relx, [
{release, {gateway_config, "0.1.0"}, [lager, gateway_config, runtime_tools]},
{generate_start_script, true},
{extended_start_script, true},
{extended_start_script_extensions, [
{ble, "extensions/ble"},
{wifi, "extensions/wifi"},
{advertise, "extensions/advertise"},
{lights, "extensions/lights"}
]},
{overlay, [
{copy, "scripts/extensions/ble", "bin/extensions/ble"},
{copy, "scripts/extensions/wifi", "bin/extensions/wifi"},
{copy, "scripts/extensions/advertise", "bin/extensions/advertise"},
{copy, "scripts/extensions/lights", "bin/extensions/lights"},
{template, "config/vm.args", "{{output_dir}}/releases/{{release_version}}/vm.args"},
{copy, "config/com.helium.Config.conf", "config/com.helium.Config.conf"}
]},
{dev_mode, true},
{sys_config, "config/sys.config"}
]}.
{profiles, [
{prod, [
{relx, [
{sys_config, "config/sys.config"},
{dev_mode, false},
{include_src, false},
{system_libs, false},
{include_erts, false}
]}
]},
{dev, [
{relx, [
{overlay, [{copy, "config/sys.config", "config/sys.config"}]},
{sys_config, "config/test.config"},
{dev_mode, true},
{include_erts, true}
]}
]},
{test, [
{deps, [proper, {meck, "0.8.12"}]},
{erl_opts, [nowarn_export_all]}
]}
]}.
{ct_opts, [{sys_config, "config/test.config"}]}.
{shell, [
{apps, [lager, gateway_config]}
]}.