Skip to content

Commit

Permalink
Rebar2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-fieldbox committed Feb 17, 2020
1 parent 73698ec commit 03a71a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ case erlang:function_exported(rebar3, main, 1) of
true -> % rebar3
TravisConfig;
false -> % rebar 2.x or older
lists:keystore(proto_opts, 1, TravisConfig, {proto_opts, [{src_dirs, []}]})
TravisConfig2 = lists:keystore(proto_opts, 1, TravisConfig, {proto_opts, [{src_dirs, []}]}),

% rebar3 plugins won't work in rebar2
lists:keydelete(plugins, 1, TravisConfig2)
end.

0 comments on commit 03a71a7

Please sign in to comment.