forked from dalmatinerdb/dalmatinerdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
112 lines (96 loc) · 3.68 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
%% -*- erlang -*-
{erl_opts, [debug_info, warnings_as_errors, {parse_transform, lager_transform}]}.
%%-------------------------------------------------------------------
%% Dependencies
%%-------------------------------------------------------------------
{deps,
[
%% Lets overwrite stuff that is not 18.0 compatible :(
edown,
{lager, "~>3.2.0"},
{fifo_lager, "~>0.1.4"},
{ranch, "1.1.0"},
fifo_utils,
{riak_core, {pkg, riak_core_ng}},
k6_bytea,
trie,
snappiest,
{bitmap, {pkg, ebitmap}},
{mstore_inspector, ".*", {git, "https://github.com/dalmatinerdb/mstore_inspector.git", {branch, "master"}}},
{mmath, "~>0.2.0"},
{mstore, ".*", {git, "https://github.com/dalmatinerdb/mstore.git", {branch, "bitmap-sync-option"}}},
estore,
{dproto, "~>0.5.0"},
{otters, "~>0.2.0"},
{hdr_histogram, "~>0.2.0"},
eper,
recon,
{jsxd, "~>0.2.0"}
]}.
%%-------------------------------------------------------------------
%% Plugins
%%-------------------------------------------------------------------
{project_plugins, [{rebar3_cuttlefish, "~>0.14.0"}]}.
{plugins, [pc]}.
%%-------------------------------------------------------------------
%% Cuttlefish
%%-------------------------------------------------------------------
{cuttlefish,
[{file_name, "dalmatinerdb.conf"},
{schema_discovery, false}]}.
%%-------------------------------------------------------------------
%% Testing
%%-------------------------------------------------------------------
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.
%%-------------------------------------------------------------------
%% Profiles
%%-------------------------------------------------------------------
{profiles,
[{eqc, [{deps, [meck]}, {plugins, [rebar3_eqc]}]},
{shell, [{deps, [sync]}]},
{short, [{erl_opts, [{d, 'EQC_SHORT_TEST'}]}]},
{long, [{erl_opts, [{d, 'EQC_LONG_TEST'}]}]},
{smartos, [{relx, [{dev_mode, false}]}]},
{deb, [{relx, [{dev_mode, false}, {overlay_vars, "rel/vars/deb.config"}]},
{cuttlefish, [{file_name, "ddb.conf.example"}]}]},
{fbsd, [{relx, [{dev_mode, false}, {overlay_vars, "rel/freebsd/vars.config"}]}]},
{lint,
[{plugins,
[rebar3_lint]}]}
]}.
%%-------------------------------------------------------------------
%% Overrides
%%-------------------------------------------------------------------
%%-------------------------------------------------------------------
%% RELx
%%-------------------------------------------------------------------
{relx,
[{release, {ddb, "0.3.2"},
[sasl,
dalmatiner_db,
{cuttlefish, load},
{runtime_tools, load}, %% for dyntrace
{tools, load}, %% for eprof
{recon, load},
{eper, load}
]},
{dev_mode, true},
{include_erts, true},
{generate_start_script, false},
{overlay_vars, "rel/vars.config"},
{overlay,
[{mkdir, "etc"},
{mkdir, "share"},
{copy, "rel/files/erl", "erts-\{\{erts_vsn\}\}/bin/erl"},
{copy, "rel/files/nodetool", "erts-\{\{erts_vsn\}\}/bin/nodetool"},
{template, "rel/files/ddb", "bin/ddb"},
{template, "rel/files/ddb-admin", "bin/ddb-admin"},
{copy, "share/dtrace", "share/dtrace"},
{template, "share/ddb.xml", "share/ddb.xml"},
%% {copy, "_build/prod/lib/fifo_utils/priv/update_config.sh", "share/"},
{template, "schema/dalmatinerdb.schema", "share/schema/00-dalmatinerdb.schema"},
{template, "schema/erlang_vm.schema", "share/schema/01-vm.schema"},
{template, "\{\{build_dir\}\}/lib/riak_core/priv/riak_core.schema", "share/schema/02-riak_core.schema"},
{template, "_build/default/lib/fifo_lager/priv/lager.schema", "share/schema/03-lager.schema"},
{template, "\{\{build_dir\}\}/lib/otters/priv/otters.schema", "share/schema/04-otters.schema"}
]}]}.