mirror of
https://github.com/valitydev/msgpack-erlang.git
synced 2024-11-06 00:35:24 +00:00
More cleaner way to keep compatibility with rebar 2.x
This commit is contained in:
parent
0ffd66b1e6
commit
ce2488c36a
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ deps
|
||||
*.so
|
||||
_build
|
||||
.rebar3
|
||||
.rebar
|
||||
|
7
Makefile
7
Makefile
@ -17,7 +17,7 @@ xref:
|
||||
@$(REBAR) xref
|
||||
|
||||
test:
|
||||
@$(REBAR) eunit
|
||||
@$(REBAR) as test eunit eqc
|
||||
|
||||
clean:
|
||||
@$(REBAR) clean
|
||||
@ -25,10 +25,7 @@ clean:
|
||||
dialyzer:
|
||||
@$(REBAR) dialyzer
|
||||
|
||||
check-all:
|
||||
@$(REBAR) eunit
|
||||
@$(REBAR) xref
|
||||
@$(REBAR) dialyzer
|
||||
check-all: test xref dialyzer
|
||||
|
||||
crosslang:
|
||||
@echo "do ERL_LIBS=../ before you make crosslang or fail"
|
||||
|
@ -13,10 +13,10 @@
|
||||
"src/msgpack_ext.erl"
|
||||
]}.
|
||||
|
||||
{plugins, [
|
||||
rebar3_eqc,
|
||||
rebar3_hex
|
||||
]}.
|
||||
{profiles,
|
||||
[{test,
|
||||
[{plugins, [rebar3_eqc]}]
|
||||
}]}.
|
||||
|
||||
%% {port_sources, ["c_src/*.c"]}.
|
||||
%% {port_env, [
|
||||
|
@ -1,9 +0,0 @@
|
||||
case application:get_key(rebar, vsn) of
|
||||
{ok, "2."++_V} ->
|
||||
%% Workarounds for rebar2 here
|
||||
{plugins, Plugins} = lists:keyfind(plugins, 1, CONFIG),
|
||||
NewPlugins = lists:delete(rebar3_eqc, Plugins),
|
||||
lists:keyreplace(plugins, 1, CONFIG, {plugins, NewPlugins});
|
||||
_ ->
|
||||
CONFIG
|
||||
end.
|
Loading…
Reference in New Issue
Block a user