summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-04-05 18:23:13 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-04-05 20:29:16 +0100
commitba07279c952718ac15fcf659fb2c21f512e86850 (patch)
tree16ecf6c1895ef3dc9f598eaefe12883c0703c31f /.gitlab-ci.yml
parentd89df8a98048f8ecb38f656dedc1746b64027a60 (diff)
downloadgtk+-ba07279c952718ac15fcf659fb2c21f512e86850.tar.gz
ci: Add JUnit report for the test suite
We can convert the JSON output for `meson test` into a JUnix XML report, which can be consumed by GitLab.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a29a7d52b0..a7fb6c16a1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,11 +17,16 @@ fedora-x86_64:
stage: build
script:
- bash -x ./.gitlab-ci/test-docker.sh
+ - python3 ./.gitlab-ci/meson-junit-report.py --project-name=gtk --job-id="${CI_JOB_NAME}" --output=_build/report.xml _build/meson-logs/testlog.json
artifacts:
- when: on_failure
+ when: always
+ reports:
+ junit:
+ - "${CI_PROJECT_DIR}/_build/report.xml"
name: "gtk-${CI_COMMIT_REF_NAME}"
paths:
- "${CI_PROJECT_DIR}/_build/meson-logs"
+ - "${CI_PROJECT_DIR}/_build/report.xml"
cache:
key: "$CI_JOB_NAME"
<<: *cache-paths