This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrebar.config
80 lines (68 loc) · 2.38 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
{lib_dirs, ["deps", "apps"]}.
{erl_opts, [{i, "deps"},
{parse_transform, lager_transform},
warnings_as_errors,
debug_info]}.
{edoc_opts, [{dir, "../../doc"}]}.
{sub_dirs, ["rel", "apps/tachyon"]}.
{cover_enabled, true}.
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.
{deps,
[
{lager, "2.1.1"},
{jsx, "1.4.5"},
{cuttlefish, ".*", {git, "https://github.com/tsloughter/cuttlefish.git", {branch, "develop"}}},
ensq,
fifo_utils,
ddb_client,
eper,
recon
]}.
{pre_hooks, [{compile, "make version_header"}]}.
{profiles, [
{prod, [{relx, [{dev_mode, false}]}]}
]}.
%%-------------------------------------------------------------------
%% Plugins
%%-------------------------------------------------------------------
{plugins,
[pc,
{rebar3_cuttlefish, ".*", {git, "git://github.com/tsloughter/rebar3_cuttlefish.git", {branch, "master"}}}
]}.
%%-------------------------------------------------------------------
%% RELx
%%-------------------------------------------------------------------
{relx,
[{release, {"tachyon", "0.1.0p2"},
[sasl,
tachyon,
{cuttlefish, load},
{runtime_tools, load}, %% for dyntrace
%% runtime tools
{eper, load},
{recon, load}
]},
{dev_mode, true},
{include_erts, true},
{generate_start_script, false},
{overlay_vars, "rel/vars.config"},
{overlay,
[{mkdir, "etc"},
{copy, "rel/files/erl", "erts-\{\{erts_vsn\}\}/bin/erl"},
{copy, "rel/files/nodetool", "erts-\{\{erts_vsn\}\}/bin/nodetool"},
{copy, "rel/files/tachyon.rules.example", "etc/tachyon.rules.example"},
{template, "rel/files/tachyon", "bin/tachyon"},
{copy, "_build/default/bin/cuttlefish", "bin/cuttlefish"},
{copy, "share", "share"},
%% {copy, "_build/prod/lib/fifo_utils/priv/update_config.sh", "share/"},
{template, "schema/tachyon.schema", "share/schema/00-tachyon.schema"},
{template, "_build/default/lib/ensq/priv/ensq.schema", "share/schema/01-ensq.schema"},
{template, "schema/lager.schema", "share/schema/01-lager.schema"},
{template, "schema/erlang_vm.schema", "share/schema/03-vm.schema"}
]}]}.
%%-------------------------------------------------------------------
%% Cuttlefish
%%-------------------------------------------------------------------
{cuttlefish_filename, "tachyon.conf.example"}.
{provider_hooks,
[{post, [{release, cuttlefish}]}]}.