forked from ErlyORM/boss_db
-
Notifications
You must be signed in to change notification settings - Fork 3
/
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/layerhq/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/greyorange/ets_cache.git", {tag, "d30de6c1c5"}}},
{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.