From e6f59a01c430de7be9b60d248ce276fb62f71c72 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Sun, 12 Jan 2025 15:52:07 +0100 Subject: [PATCH] ci: Use meson JUnit integration in GitLab CI This allows GitLab to show a nice UI for the test report. --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 599ffe8..650a999 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,9 +27,13 @@ fedora:Werror: - eval `dbus-launch --sh-syntax` - meson test -C _build --print-errorlogs artifacts: - when: on_failure + reports: + junit: "_build/meson-logs/testlog.junit.xml" + name: "libsecret-werror-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always paths: - - _build/meson-logs/testlog.txt + - "_build/config.h" + - "_build/meson-logs" fedora:asan: stage: build @@ -44,9 +48,13 @@ fedora:asan: - eval `dbus-launch --sh-syntax` - meson test -C _build --print-errorlogs artifacts: - when: on_failure + reports: + junit: "_build/meson-logs/testlog.junit.xml" + name: "libsecret-asan-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always paths: - - _build/meson-logs/testlog.txt + - "_build/config.h" + - "_build/meson-logs" fedora:ubsan: stage: build @@ -60,9 +68,13 @@ fedora:ubsan: - eval `dbus-launch --sh-syntax` - meson test -C _build --print-errorlogs artifacts: - when: on_failure + reports: + junit: "_build/meson-logs/testlog.junit.xml" + name: "libsecret-ubsan-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always paths: - - _build/meson-logs/testlog.txt + - "_build/config.h" + - "_build/meson-logs" fedora-static-analyzers/test: stage: build @@ -89,9 +101,13 @@ fedora:PAM: - eval `dbus-launch --sh-syntax` - meson test -C _build --print-errorlogs artifacts: - when: on_failure + reports: + junit: "_build/meson-logs/testlog.junit.xml" + name: "libsecret-pam-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always paths: - - _build/meson-logs/testlog.txt + - "_build/config.h" + - "_build/meson-logs" fedora:coverage: stage: build