forked from helium/packet-purchaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
92 lines (85 loc) · 2.96 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
{erl_opts, [
debug_info,
{parse_transform, lager_transform},
warnings_as_errors
]}.
{deps, [
{clique, ".*", {git, "https://github.com/helium/clique.git", {branch, "develop"}}},
{observer_cli, "1.6.0"},
{jsx, {git, "https://github.com/lthiery/jsx", {branch, "main"}}},
{kvc, {git, "https://github.com/etrepum/kvc", {tag, "v1.7.0"}}},
{blockchain, {git, "https://github.com/helium/blockchain-core.git", {branch, "master"}}},
{iso8601, ".*", {git, "https://github.com/erlsci/iso8601.git", {tag, "1.3.1"}}},
{xxhash, {git, "https://github.com/pierreis/erlang-xxhash", {branch, "master"}}},
{prometheus, "4.6.0"},
{elli, "3.3.0"},
{hackney, "1.17.0"}
]}.
{plugins, [
{rebar3_format, "0.8.2"},
{erlfmt, "0.10.0"}
]}.
{format, [
{ignore, []},
{files, [
"rebar.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
]}.
{profiles, [
{test, [
{overrides, [
{add, blockchain, [{erl_opts, [{d, 'TEST'}]}]}
]},
{deps, [
{meck, "0.9.0"}
]}
]}
]}.
{relx, [
{release, {packet_purchaser, "1.0.0"}, [packet_purchaser]},
{vm_args, "config/vm.args"},
{sys_config, "config/sys.config"},
{sys_config_src, "config/sys.config.src"},
{extended_start_script, 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/snapshot",
"bin/extensions/snapshot"},
{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, "./scripts/extensions/info", "bin/extensions/info"}
]},
{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"},
{snapshot, "extensions/snapshot"},
{ledger, "extensions/ledger"},
{trace, "extensions/trace"},
{txn, "extensions/txn"},
{repair, "extensions/repair"},
{sc, "extensions/sc"},
{info, "extensions/info"}
]}
]}.
{ct_opts, [{sys_config, "config/test.config"}]}.