mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-30 17:36:16 +01:00
ed65996300
GitLab can show the results of a CI pipeline if the pipeline generates a report using the JUnit XML format. Since Meson provides a machine parseable output for `meson test`, we can take that and turn it into XML soup.
19 lines
377 B
Bash
Executable File
19 lines
377 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set +e
|
|
|
|
meson test \
|
|
-C _build \
|
|
--timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER} \
|
|
--no-suite flaky
|
|
|
|
exit_code=$?
|
|
|
|
python3 .gitlab-ci/meson-junit-report.py \
|
|
--project-name=glib \
|
|
--job-id "${CI_JOB_NAME}" \
|
|
--output "_build/${CI_JOB_NAME}-report.xml" \
|
|
_build/meson-logs/testlog.json
|
|
|
|
exit $exit_code
|