-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebar.config.script
More file actions
22 lines (22 loc) · 1.18 KB
/
Copy pathrebar.config.script
File metadata and controls
22 lines (22 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MaybeUpdatedConfig = 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/basho/lager.git", {tag, "3.2.1"}}}
,{restc, ".*", {git, "https://github.com/kivra/restclient.git", {tag, "0.3.8"}}}
,{stillir, ".*", {git, "https://github.com/heroku/stillir.git", {tag, "1.0.0"}}}
,{st_commons, ".*", {git, "https://github.com/synlay/st_commons.git", {tag, "1.2.1"}}}
,{erlando, ".*", {git, "https://github.com/rabbitmq/erlando.git", "1c1ef25a9bc228671b32b4a6ee30c7525314b1fd"}}
,{parse_trans, ".*", {git, "https://github.com/uwiger/parse_trans.git", {tag, "3.0.0"}}}
]} | [Config || {Key, _Value}=Config <- CONFIG, Key =/= deps andalso Key =/= plugins]]
end,
case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
lists:keystore(coveralls_service_job_id, 1, MaybeUpdatedConfig, {coveralls_service_job_id, JobId});
_ ->
MaybeUpdatedConfig
end.