-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
79 lines (70 loc) · 2.34 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
%% rebar plugins
{plugins, [rebar3_hex, rebar3_elixir]}.
%% behaviours should be compiled before other files
{erl_first_files, [
"src/rebar_git_plugin.erl",
"src/http/listener_behaviour.erl",
"src/logging/logger_plugin_behaviour.erl",
"src/oz/oz_plugin_behaviour.erl"
]}.
{erl_opts, [
fail_on_warning,
debug_info
]}.
{dialyzer, [
{warnings, [error_handling, unknown]},
{plt_extra_apps, [
mnesia, ranch, cowboy, ssl, xmerl, jiffy, base64url, ssl_verify_fun,
macaroons, tools, common_test, meck, inets, runtime_tools, compiler,
eunit, os_mon, iso8601, edoc, certifi, locus, yamerl
]}
]}.
%% eunit opts - Maven-like output formatting
{eunit_opts, [
verbose,
{report, {eunit_surefire, [{dir, "./test/eunit_results"}]}}
]}.
%% TODO: VFS-7199 enable after upgrade to Erlang 18.3
%% Test coverage
%% {cover_enabled, true}.
{deps, [
{ranch, {git, "https://github.com/ninenines/ranch.git", {ref, "af1508c4a729"}}},
{cowboy, {git, "https://github.com/ninenines/cowboy.git", {tag, "2.9.0"}}},
{hackney, {git, "https://github.com/benoitc/hackney", {tag, "1.17.4"}}},
{meck, {git, "https://github.com/eproxus/meck.git", {tag, "0.9.2"}}},
{lager, "3.9.2"},
{jiffy, {git, "https://github.com/davisp/jiffy.git", {ref, "9ea1b35b6e60"}}},
{macaroons, {git, "ssh://git@git.onedata.org:7999/vfs/macaroons.git", {ref, "dc3feb5d5d11"}}},
{iso8601, {git, "https://github.com/xorver/erlang_iso8601.git", {ref, "72013b0"}}},
{locus, {git, "https://github.com/g-andrade/locus.git", {ref, "38871b7560d8"}}},
{yamerl, "0.7.0"},
{observer_cli, "1.6.2"}
]}.
%% pre-hooks
{pre_hooks, [
{eunit, "mkdir -p test/eunit_results"}, %% Make dir for eunit' surefire test results
{eunit, "epmd -daemon"}, %% Sometimes, in some cases epmd daemon doesn't start during eunit tests, so we need to force start it
%% NIFs compilation
{compile, "mkdir -p priv"},
{compile, "make -C c_src"}
]}.
%% Cleanup
{clean_files, [
"./c_src/*/*.o",
"test/eunit_results",
"./priv/*.so"
]}.
{overrides, [
{override, jiffy, [
{plugins, [pc]},
{artifacts, ["priv/jiffy.so"]},
{provider_hooks, [
{post,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]
}]
}
]}
]}.