forked from benoitc/hackney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config.script
38 lines (30 loc) · 1.24 KB
/
rebar.config.script
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
IsRebar3 = erlang:function_exported(rebar3, main, 1),
Rebar2Deps0 = [{idna, ".*",
{git, "https://github.com/benoitc/erlang-idna",
{tag, "6.0.0"}}},
{mimerl, ".*",
{git, "https://github.com/benoitc/mimerl",
{tag, "1.0.2"}}},
{certifi, ".*",
{git, "https://github.com/certifi/erlang-certifi",
{tag, "2.4.2"}}},
{metrics, ".*",
{git, "https://github.com/benoitc/erlang-metrics",
{tag, "1.0.1"}}},
{ssl_verify_fun, ".*",
{git, "https://github.com/deadtrickster/ssl_verify_fun.erl",
{tag, "1.1.4"}}}],
Rebar2Deps = case os:getenv("TEST") of
"1" -> [{cowboy, ".*", {git, "https://github.com/ninenines/cowboy.git",
{tag, "1.0.4"}}},
{jsone, ".*", {git, "https://github.com/sile/jsone.git",
{tag, "1.4.7"}}} | Rebar2Deps0];
false ->
Rebar2Deps0
end,
case IsRebar3 of
true ->
CONFIG;
false ->
lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
end.