forked from helium/router
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
146 lines (135 loc) · 5.03 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{erl_opts, [
debug_info,
{parse_transform, lager_transform},
warnings_as_errors
]}.
{cover_export_enabled, true}.
{cover_enabled, true}.
{deps, [
{clique, ".*", {git, "https://github.com/helium/clique.git", {branch, "develop"}}},
{erlang_lorawan, ".*",
{git, "https://github.com/helium/erlang-lorawan.git", {branch, "master"}}},
{router_utils, ".*", {git, "https://github.com/helium/router-utils.git", {branch, "main"}}},
{lager, "3.9.2"},
{jsx, "3.1.0"},
{kvc, {git, "https://github.com/etrepum/kvc", {tag, "v1.7.0"}}},
{observer_cli, "1.7.1"},
{hackney, "1.18.1"},
{emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.4.7"}}},
{httpc_aws, {git, "https://github.com/helium/httpc-aws.git", {branch, "master"}}},
{websocket_client, "1.4.2"},
{erlang_v8, {git, "https://github.com/Vagabond/erlang_v8.git", {branch, "master"}}},
{blockchain, {git, "https://github.com/helium/blockchain-core.git", {tag, "validator1.16.1"}}},
{prometheus, "4.8.1"},
{elli, "3.3.0"},
{bbmustache, {git, "https://github.com/helium/bbmustache", {branch, "data-fun"}}},
{iso8601, {git, "https://github.com/erlsci/iso8601", {branch, "master"}}},
{grpc_client,
{git, "https://github.com/Bluehouse-Technology/grpc_client.git", {branch, "master"}}},
{grpcbox, {git, "https://github.com/andymck/grpcbox.git", {branch, "master"}}},
{inet_cidr, "1.1.0", {pkg, erl_cidr}},
{throttle, "0.3.0", {pkg, lambda_throttle}},
{e2qc, {git, "https://github.com/helium/e2qc.git", {branch, "master"}}},
{helium_proto, {git, "https://github.com/helium/proto.git", {branch, "master"}}}
]}.
{plugins, [
{grpcbox_plugin,
{git, "https://github.com/novalabsxyz/grpcbox_plugin.git",
{branch, "andymck/ts-master/combined-opts-and-template-changes"}}},
{rebar3_format, "1.0.1"},
{erlfmt, "1.0.0"}
]}.
{format, [
{ignore, ["src/grpc/autogen/**/*"]},
{files, [
"rebar.config",
"rebar-deps.config",
"{src,include,test}/**/*.{hrl,erl,app.src}",
"config/{sys,test}.{config,config.src}"
]},
{formatter, erlfmt_formatter},
{options, #{print_width => 100, ignore_pragma => true}}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used
]}.
{xref_ignores, [
validator_pb,
validator_client_pb,
router_pb,
router_client_pb,
packet_router_pb,
packet_router_client_pb,
state_channel_pb,
state_channel_client_pb,
gateway_client_pb,
iot_config_client_pb,
iot_config_pb
]}.
{profiles, [
{test, [
{overrides, [
{add, blockchain, [{erl_opts, [{d, 'TEST'}]}]}
]},
{deps, [
{meck, "0.9.2"},
{elli_websocket, "0.1.1"}
]}
]},
{mainnet, []},
{testnet, [
{relx, [
{sys_config_src, "config/testnet.config.src"}
]}
]}
]}.
{relx, [
{release, {router, "1.0.0"}, [router]},
{vm_args, "config/vm.args"},
{sys_config, "config/sys.config"},
{sys_config_src, "config/sys.config.src"},
{include_src, true},
{overlay, [
{copy, "priv/genesis", "update/genesis"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/peer", "bin/extensions/peer"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/ledger",
"bin/extensions/ledger"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/trace", "bin/extensions/trace"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/txn", "bin/extensions/txn"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/repair",
"bin/extensions/repair"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/sc", "bin/extensions/sc"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/snapshot",
"bin/extensions/snapshot"},
{copy, "./scripts/extensions/organization", "bin/extensions/organization"},
{copy, "./scripts/extensions/device", "bin/extensions/device"},
{copy, "./scripts/extensions/info", "bin/extensions/info"},
{copy, "./scripts/extensions/filter", "bin/extensions/filter"},
{copy, "./scripts/extensions/migration", "bin/extensions/migration"}
]},
{extended_start_script_hooks, [
{post_start, [
{wait_for_process, blockchain_worker}
]}
]},
{generate_start_script, true},
{extended_start_script, true},
{extended_start_script_extensions, [
{peer, "extensions/peer"},
{ledger, "extensions/ledger"},
{trace, "extensions/trace"},
{txn, "extensions/txn"},
{repair, "extensions/repair"},
{sc, "extensions/sc"},
{snapshot, "extensions/snapshot"},
{organization, "extensions/organization"},
{device, "extensions/device"},
{info, "extensions/info"},
{filter, "extensions/filter"},
{migration, "extensions/migration"}
]}
]}.
{pre_hooks, [{"(linux)", ct, "./c_src/compile.sh"}]}.
{ct_opts, [{sys_config, "config/test.config"}]}.