-
Notifications
You must be signed in to change notification settings - Fork 137
/
rebar.config.script
48 lines (45 loc) · 3.53 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
39
40
41
42
43
44
45
46
47
48
case erlang:function_exported(rebar3, main, 1) of
true -> % rebar3
CONFIG;
false -> % rebar 2.x or older
%% Rebuild deps, possibly including those that have been moved to
%% profiles
[{deps, [
{lager, ".*", {git, "https://github.com/erlang-lager/lager.git", {tag, "3.6.7"}}},
{erlando, ".*", {git, "https://github.com/ChicagoBoss/erlando.git", {tag, "680688f"}}},
{aleppo, ".*", {git, "https://github.com/ErlyORM/aleppo.git", {tag, "v0.9.4"}}},
{medici, ".*", {git, "https://github.com/ErlyORM/medici.git", {tag, "bb6167459d"}}},
% Different version of mongodb driver and bson breaking compilation
% on different Erlang version. So disabling them by default. Uncomment one
% of options below, if you need mongodb driver
% for Erlang = 17
%{bson, ".*", {git, "https://github.com/comtihon/bson-erlang", {branch, "legacy"}}},
%{mongodb, ".*", {git, "https://github.com/comtihon/mongodb-erlang", {tag, "v0.7.9"}}},
% for Erlang >= 18
%{mongodb, ".*", {git, "https://github.com/comtihon/mongodb-erlang", {tag, "v0.7.9"}}},
% riak_pb not compatible with Erlang 18, so commented for now
% uncomment line below if you need Riak support and have Erlang < 18
%{riakc, ".*", {git, "https://github.com/ErlyORM/riak-erlang-client.git", {tag, "1.3.0-boss"}}},
{ddb, ".*", {git, "https://github.com/ErlyORM/ddb.git", {tag, "v0.1.7"}}},
{epgsql, ".*", {git, "https://github.com/epgsql/epgsql.git", {tag, "4.2.0"}}},
{erlmc, ".*", {git, "https://github.com/ErlyORM/erlmc.git", {tag, "c5280da"}}},
{mysql, ".*", {git, "https://github.com/ErlyORM/erlang-mysql-driver.git", {tag, "v0.0.4"}}},
{poolboy, ".*", {git, "https://github.com/devinus/poolboy.git", {tag, "1.5.2"}}},
{uuid, ".*", {git, "https://github.com/avtobiff/erlang-uuid.git", {tag, "v0.5.2"}}},
{redo, ".*", {git, "https://github.com/heroku/redo.git", {tag, "cd75a11"}}},
% boss_branch for ets_cache
{ets_cache, ".*", {git, "https://github.com/cuongth/ets_cache.git", {tag, "c7a17204cd"}}},
{proper, ".*", {git, "https://github.com/manopapad/proper.git", {tag, "v1.3"}}},
{dh_date, ".*", {git, "https://github.com/daleharvey/dh_date.git", {tag, "23e5a61"}}},
{tiny_pq, ".*", {git, "https://github.com/ChicagoBoss/tiny_pq.git", {tag, "v0.9.0"}}},
{boss_test, ".*", {git, "https://github.com/ChicagoBoss/boss_test.git", {tag, "0.0.1"}}}
]}
,{plugins, [rebar_ct]}
,{erl_opts, [
debug_info,
{parse_transform, lager_transform},
{parse_transform, cut},
{parse_transform, do},
{parse_transform, import_as}
]} | [Config || {Key, _Value}=Config <- CONFIG, Key =/= deps andalso Key =/= plugins andalso Key =/= erl_opts]]
end.