fix: Add source tag to cobertura script

This commit is contained in:
Robert Prehn 2021-07-23 09:17:24 -05:00
parent 06401909a0
commit 5fdaa96bb8

View file

@ -68,6 +68,14 @@ files =
}
end)
source =
if System.get_env("CI_BUILDS_DIR") do
"#{System.get_env("CI_BUILDS_DIR")}/#{System.get_env("PROJECT_FULL_PATH")}"
else
File.cwd!
end
buffer =
XmlBuilder.document([
XmlBuilder.doctype(
@ -80,6 +88,17 @@ buffer =
"line-rate" => ratio,
},
[
{
:sources,
%{},
[
{
:source,
%{},
source
}
]
},
{
:packages,
%{},