25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Disable cover analyzys on R17 as this causes problems with elixir tests

This commit is contained in:
Paweł Chmielowski 2016-05-31 11:29:19 +02:00
parent 8e883a76e3
commit db240413ab
2 changed files with 15 additions and 1 deletions

View File

@ -117,7 +117,7 @@
{eunit_compile_opts, [{i, "tools"}]}.
{cover_enabled, true}.
{if_version_above, "17", {cover_enabled, true}}.
{cover_export_enabled, true}.
{post_hook_configure, [{"fast_tls", []},

View File

@ -30,6 +30,20 @@ Cfg = case file:consult(filename:join(filename:dirname(SCRIPT), "vars.config"))
ProcessVars = fun(_F, [], Acc) ->
lists:reverse(Acc);
(F, [{Type, Ver, Value} | Tail], Acc) when
Type == if_version_above orelse
Type == if_version_below ->
SysVer = erlang:system_info(otp_release),
Include = if Type == if_version_above ->
SysVer > Ver;
true ->
SysVer < Ver
end,
if Include ->
F(F, Tail, [Value | Acc]);
true ->
F(F, Tail, Acc)
end;
(F, [{Type, Var, Value} | Tail], Acc) when
Type == if_var_true orelse
Type == if_var_false ->