diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-05-31 12:29:19 +0300 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-05-31 12:29:19 +0300 |
commit | db240413ab752f07a634d62913b849b6d7ee8296 (patch) | |
tree | 9f3cc8c93ad63a74f0e4e20cfb19d0cf908fab00 /rebar.config.script | |
parent | 8e883a76e3442f3cbc9a14aa4119822bcbded086 (diff) |
Disable cover analyzys on R17 as this causes problems with elixir tests
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rebar.config.script b/rebar.config.script index 909284204..57208da1b 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -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 -> |