fix: Add source tag to cobertura script
This commit is contained in:
parent
06401909a0
commit
5fdaa96bb8
1 changed files with 19 additions and 0 deletions
|
@ -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,
|
||||
%{},
|
||||
|
|
Loading…
Reference in a new issue