mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Adapt to coveralls api change
This commit is contained in:
parent
c0a89e328a
commit
a284722fd0
@ -232,7 +232,7 @@ Conf6 = case {lists:keyfind(cover_enabled, 1, Conf5), os:getenv("TRAVIS")} of
|
|||||||
{{cover_enabled, true}, "true"} ->
|
{{cover_enabled, true}, "true"} ->
|
||||||
JobId = os:getenv("TRAVIS_JOB_ID"),
|
JobId = os:getenv("TRAVIS_JOB_ID"),
|
||||||
CfgTemp = ModCfg(Conf5, [deps], fun(V) -> [{coveralls, ".*", {git, "https://github.com/markusn/coveralls-erl.git", "master"}}|V] end, []),
|
CfgTemp = ModCfg(Conf5, [deps], fun(V) -> [{coveralls, ".*", {git, "https://github.com/markusn/coveralls-erl.git", "master"}}|V] end, []),
|
||||||
ModCfg(CfgTemp, [post_hooks], fun(V) -> V ++ [{ct, "echo '\n%%! -pa ebin/ deps/coveralls/ebin\nmain(_)->{ok,F}=file:open(\"erlang.json\",[write]),io:fwrite(F,\"~s\",[coveralls:convert_file(\"logs/all.coverdata\", \""++JobId++"\", \"travis-ci\")]).' > getcover.erl"},
|
ModCfg(CfgTemp, [post_hooks], fun(V) -> V ++ [{ct, "echo '\n%%! -pa ebin/ deps/coveralls/ebin\nmain(_)->{ok,F}=file:open(\"erlang.json\",[write]),io:fwrite(F,\"~s\",[coveralls:convert_file(\"logs/all.coverdata\", \""++JobId++"\", \"travis-ci\", \"\")]).' > getcover.erl"},
|
||||||
{ct, "escript ./getcover.erl"}] end, []);
|
{ct, "escript ./getcover.erl"}] end, []);
|
||||||
_ ->
|
_ ->
|
||||||
Conf5
|
Conf5
|
||||||
|
Loading…
Reference in New Issue
Block a user