-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
84 lines (76 loc) · 2.51 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
%% behaviours should be compiled before other files
{erl_first_files, [
"src/client/mock_app_description_behaviour.erl"
]}.
{dialyzer, [
{warnings, [error_handling]},
{plt_extra_apps, [ctool, ranch]}
]}.
{deps, [
{ctool, {git, "ssh://git@git.onedata.org:7999/vfs/ctool.git", {ref, "ae6fa4883423"}}}
]}.
%% relx configuration
{relx, [
{release, {appmock, "1"},
[
kernel,
stdlib,
xmerl,
sasl,
public_key,
crypto,
ssl,
meck,
% All ctool deps will be included in the release package,
% so there is no need to list them here.
ctool,
%% deps included by default by reltool but not included by relx
{base64url, load},
{common_test, load},
{debugger, load},
{edoc, load},
{enacl, load},
{erts, load},
{eunit, load},
{inets, load},
{jiffy, load},
{macaroons, load},
{mnesia, load},
{observer, load},
{os_mon, load},
{runtime_tools, load},
appmock
]},
{vm_args, "rel/files/vm.args"},
{include_src, false},
{dev_mode, true},
% NOTE: {dev_mode, true} expands implicitly to {include_erts, false},
% so we need this line AFTER the dev mode to override this setting
{include_erts, true},
{overlay, [
{mkdir, "log"},
{copy, "rel/files/erl", "erts-\{\{erts_vsn\}\}/bin/erl"},
{copy, "rel/files/nodetool", "erts-\{\{erts_vsn\}\}/bin/nodetool"},
{copy, "rel/files/appmock", "bin/appmock"},
{copy, "rel/files/appmock.cmd", "bin/appmock.cmd"},
{copy, "rel/files/start_erl.cmd", "bin/start_erl.cmd"},
{copy, "rel/files/install_upgrade.escript", "bin/install_upgrade.escript"},
{template, "rel/files/vm.args", "etc/vm.args"},
{copy, "rel/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
% Copy the main hrl (needed for compiling)
{copy, "include/appmock.hrl", "appmock.hrl"}
]},
{extended_start_script, true}
]}.
%% Profiles configuration
{profiles, [
{bamboo, [
{relx, [{dev_mode, false}]},
{post_hooks, [
{release, "rm -rf _build/default/rel"},
{release, "mv -f _build/bamboo/rel _build/default"},
{release, "rm -rf _build/default/lib/appmock"},
{release, "mv -f _build/bamboo/lib/appmock _build/default/lib"}
]}
]}
]}.