forked from helium/blockchain-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
134 lines (124 loc) · 3.6 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
%% -*- erlang -*-
{erl_opts, [
debug_info,
{parse_transform, lager_transform}
%% warnings_as_errors
]}.
{plugins, [erlfmt]}.
{cover_export_enabled, true}.
{cover_enabled, true}.
{covertool, [
{coverdata_files, [
"ct.coverdata",
"eunit.coverdata"
]}
]}.
{shell, [
{apps, [lager]}
]}.
{deps, [
lager,
recon,
jsone,
pbkdf2,
{base64url, "1.0.1"},
{observer_cli, "1.5.0"},
{elli, "3.2.0"},
{jsonrpc2,
{git, "https://github.com/zuiderkwast/jsonrpc2-erlang.git", {branch, "master"}}},
{clique, {git, "https://github.com/helium/clique.git", {branch, "develop"}}},
{blockchain,
{git, "https://github.com/helium/blockchain-core.git", {tag, "2021.05.29.0"}}}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions
]}.
{shell, [{apps, [lager]}]}.
{relx, [
{release, {blockchain_node, "0.1.0"}, [
blockchain_node
]},
{vm_args, "./config/vm.args"},
{sys_config, "./config/dev.config"},
{extended_start_script, true},
{include_src, true},
{extended_start_script_hooks, [
{post_start, [
{wait_for_process, blockchain_worker}
]}
]},
{extended_start_script_extensions, [
{genesis, "extensions/genesis"},
{info, "extensions/info"},
{peer, "extensions/peer"},
{ledger, "extensions/ledger"},
{trace, "extensions/trace"},
{snapshot, "extensions/snapshot"},
{repair, "extensions/repair"},
{txn, "extensions/txn"}
]},
{overlay, [
{copy, "config/sys.config", "config/sys.config"},
{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/snapshot",
"bin/extensions/snapshot"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/repair",
"bin/extensions/repair"},
{template, "config/vm.args", "{{output_dir}}/releases/{{release_version}}/vm.args"}
]}
]}.
{profiles, [
{test, [
{relx, [
{sys_config, "./config/test.config"},
{dev_mode, false},
{include_erts, false},
{include_src, false},
{overrides, [{add, blockchain, [{erl_opts, [{d, 'TEST'}]}]}]},
{deps, [
{miner_test,
{git, "https://github.com/helium/miner-test.git", {branch, "master"}}}
]}
]}
]},
{dev, [
{relx, [
{sys_config, "./config/dev.config"},
{dev_mode, true},
{include_src, false},
{include_erts, false}
]}
]},
{prod, [
{relx, [
{sys_config, "./config/prod.config"},
{dev_mode, false},
{include_src, false},
{include_erts, true}
]}
]},
{docker_node, [
{relx, [
{sys_config_src, "./config/docker_node.config.src"},
{dev_mode, false},
{include_erts, true}
]}
]},
{local, [
{relx, [
{sys_config, "./config/local.config"},
{dev_mode, false},
{include_src, false},
{include_erts, false}
]}
]}
]}.