ci: Use meson JUnit integration in GitLab CI

This allows GitLab to show a nice UI for the test report.
This commit is contained in:
Niels De Graef 2025-01-12 15:52:07 +01:00
parent b30d5e72c5
commit e6f59a01c4

View File

@ -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