[gcr/junit-tests] ci: Expose meson's Junit test results to gitlab




commit a224e5e16484aaaf77339537aa33b52840801734
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Sep 30 18:00:31 2021 +0200

    ci: Expose meson's Junit test results to gitlab
    
    Meson has been generating Junit XML files of its test results since
    0.55, so no need for us to maintain a custom script anymore.

 .gitlab-ci.yml                   |   7 ++-
 .gitlab-ci/meson-junit-report.py | 109 ---------------------------------------
 .gitlab-ci/run-tests.sh          |  15 ------
 3 files changed, 3 insertions(+), 128 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 572a23e..1049863 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,17 +14,16 @@ fedora:Werror:
     - dnf builddep -y gcr
   script:
     - meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations
-    - ninja -C _build
-    - dbus-run-session -- bash +x ./.gitlab-ci/run-tests.sh
+    - meson compile -C _build
+    - dbus-run-session -- meson test -C _build
   artifacts:
     reports:
-      junit: "_build/${CI_JOB_NAME}-report.xml"
+      junit: "_build/meson-logs/testlog.junit.xml"
     name: "gcr-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     when: always
     paths:
       - "_build/config.h"
       - "_build/meson-logs"
-      - "_build/${CI_JOB_NAME}-report.xml"
 
 fedora:asan:
   image: fedora:latest


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]