diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2019-05-07 01:42:15 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2019-05-07 02:07:41 +0200 |
commit | cd9ced962fe20ddd05cb0dfbe8929b11af8b1acf (patch) | |
tree | 96b6909cf9ea1494e0035bb68c82e033f88a4477 /.gitlab-ci.yml | |
parent | e4700ba02d2631c54d53c50fd12f01fa24d0ed95 (diff) | |
download | gnome-contacts-cd9ced962fe20ddd05cb0dfbe8929b11af8b1acf.tar.gz |
CI: Report test results to GitLab
Use Emmanuele's script for GLib to parse the meson JSON-formatted
testlog to turn it into a JUnit XML which GitLab understands and cnn
report to the user in the web UI.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db3aeb2..db84f03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,13 +15,17 @@ flatpak:master: - flatpak-builder --finish-only --repo=repo app data/flatpak/org.gnome.Contacts.json # Make a Flatpak Contacts bundle for people to test - flatpak build-bundle repo contacts-dev.flatpak --runtime-repo=https://sdk.gnome.org/gnome-nightly.flatpakrepo org.gnome.Contacts - - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test + # Run the tests + - bash +x ./.gitlab-ci/run-tests.sh artifacts: + reports: + junit: "_build/${CI_JOB_NAME}-report.xml" + name: "gnome-contacts-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always paths: - contacts-dev.flatpak - - _build/meson-logs/meson-log.txt - - _build/meson-logs/testlog.txt - expire_in: 2 days + - _build/meson-logs/ + expire_in: 14 days cache: paths: - .flatpak-builder/cache |