-
Notifications
You must be signed in to change notification settings - Fork 15
/
rebar.config.script
29 lines (29 loc) · 1.04 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
ElixirVersion = case os:getenv("ELIXIR_VERSION") of
false -> {branch, "stable"};
V -> V
end,
MainDeps =
[ { elixir, ".*",
{git, "git://github.com/elixir-lang/elixir", ElixirVersion}},
{aleppo, ".*",
{git, "https://github.com/ChicagoBoss/aleppo.git", {branch, "master"}}},
{ rebar_elixir_plugin, ".*",
{git, "git://github.com/qhool/rebar_elixir_plugin", {branch, "elixir_0.15"}}}
],
Env = case os:getenv("REBAR_ENV") of
false -> dev;
E -> list_to_atom(E)
end,
Deps = case Env of
test ->
[ {meck, ".*",
{git, "https://github.com/eproxus/meck.git", {branch, "master"}}} | MainDeps ];
_ -> MainDeps
end,
[ {deps, Deps},
%% get access to mark_keywords in aleppo
{plugins, [rebar_elixir_compiler] ++ case Env of
test -> [rebar_exunit];
_ -> []
end},
{lib_dirs, ["deps/elixir/lib"]} ].