ci(xref): handle non-existing apps/modules
This commit is contained in:
parent
8b6b9a0d20
commit
fef088220c
|
@ -18,12 +18,16 @@ main(_) ->
|
||||||
xref:set_default(Name, [{verbose,false}, {warnings,false}]),
|
xref:set_default(Name, [{verbose,false}, {warnings,false}]),
|
||||||
xref:add_release(Name, "_build/emqx/rel/emqx/lib/"),
|
xref:add_release(Name, "_build/emqx/rel/emqx/lib/"),
|
||||||
xref:add_application(Name, code:lib_dir(erts)),
|
xref:add_application(Name, code:lib_dir(erts)),
|
||||||
[ok = xref:remove_application(Name, App) ||
|
[ case xref:remove_application(Name, App) of
|
||||||
App <- ExclApps
|
ok -> ok;
|
||||||
|
{error, xref_base, {no_such_application, _}} -> ok
|
||||||
|
end || App <- ExclApps
|
||||||
],
|
],
|
||||||
|
|
||||||
[ok = xref:remove_module(Name, M) ||
|
[case xref:remove_module(Name, M) of
|
||||||
M <- ExclMods
|
ok -> ok;
|
||||||
|
{error, M, _R} -> ok
|
||||||
|
end || M <- ExclMods
|
||||||
],
|
],
|
||||||
ModuleInfos = xref:info(Name, modules),
|
ModuleInfos = xref:info(Name, modules),
|
||||||
LibInfos = xref:info(Name, modules),
|
LibInfos = xref:info(Name, modules),
|
||||||
|
|
Loading…
Reference in New Issue