gitlab-ci: add meson JUnit test result into report
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 27 May 2022 15:35:33 +0000 (16:35 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 1 Jun 2022 12:06:32 +0000 (13:06 +0100)
This allows the gitlab UI to show the test results in different ways,
see doc:

  https://docs.gitlab.com/ee/ci/unit_test_reports.html#how-it-works

Previous we only reports avocado test results (.avocado_test_job_template),
with this change, the qemu/meson tests are also covered.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220525173411.612224-1-marcandre.lureau@redhat.com>
[AJB: expand the commit description]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220527153603.887929-4-alex.bennee@linaro.org>

.gitlab-ci.d/buildtest-template.yml

index dc6d67aacf4aad0c1d591819ba99133719439cb9..b381345dbc2f8090c82419b470c68a17fdd2c7fd 100644 (file)
@@ -44,6 +44,8 @@
     expire_in: 7 days
     paths:
       - build/meson-logs/testlog.txt
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
 
 .avocado_test_job_template:
   extends: .common_test_job_template