ci: create a merged junit report

Upload a build artifact that is the merged junit report in both xml and
html format.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-04-16 10:41:25 -05:00 committed by Kumar Gala
commit 335c88f4d0
2 changed files with 20 additions and 0 deletions

View file

@ -27,6 +27,16 @@ steps:
- junit-annotate#v1.7.0:
artifacts: twister-*.xml
- command: |
buildkite-agent artifact download twister-*.xml .
junitparser merge twister-*.xml junit.xml
buildkite-agent artifact upload junit.xml
junit2html junit.xml
buildkite-agent artifact upload junit.xml.html
cat << EOF | buildkite-agent annotate --style "info"
Read the <a href="artifact://junit.xml.html">JUnit test report</a>
EOF
notify:
- email: "builds+int+399+7809482394022958124@lists.zephyrproject.org"
if: build.state != "passed"

View file

@ -26,3 +26,13 @@ steps:
- plugins:
- junit-annotate#v1.7.0:
artifacts: twister-*.xml
- command: |
buildkite-agent artifact download twister-*.xml .
junitparser merge twister-*.xml junit.xml
buildkite-agent artifact upload junit.xml
junit2html junit.xml
buildkite-agent artifact upload junit.xml.html
cat << EOF | buildkite-agent annotate --style "info"
Read the <a href="artifact://junit.xml.html">JUnit test report</a>
EOF