[folks/feature/use-meson-junit-report] ci: Expose meson's Junit test results to gitlab




commit a6fc41cf799d71bdf0d42bff98f964f60b2e566e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Sep 30 16:04:39 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 1e8a4452..e4f56b1e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,20 +32,19 @@ build-folks:
       dbus-daemon # FIXME: dbus-broker breaks the CI, see https://github.com/bus1/dbus-broker/issues/145
   script:
     - meson _build -Ddocs=true
-    - ninja -C _build
+    - meson compile -C _build
     # Multiply the Meson test timeout by 3 (mostly for the stress tests)
     # For most tests it doesn't matter anyway, since we internally use
     # TestUtils.loop_run_with_timeout()
-    - bash +x ./.gitlab/ci/run-tests.sh -t 3
+    - meson test -C _build -t 3
   artifacts:
     reports:
-      junit: "_build/${CI_JOB_NAME}-report.xml"
+      junit: "_build/meson-logs/testlog.junit.xml"
     name: "folks-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     when: always
     paths:
       - "_build/config.h"
       - "_build/meson-logs"
-      - "_build/${CI_JOB_NAME}-report.xml"
       - "_build/docs"
 
 pages:


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