CI: expose test results as junit

This allows Gitlab to show a detailed test report in a human friendly
manner on a merge request page.

The junit output depends on Meson 0.55, but Meson in CI is bumped to the
latest release on Feb 15th. It is beneficial to use the newest
possible Meson in CI even if we do not require it, so that we benefit
from fixes, e.g. new warnings about accidentally using more recent
Meson features than our minimum Meson version supports.

Meson 0.57 is required for proper test names in the Gitlab report after
switching the tests to TAP. See:
https://github.com/mesonbuild/meson/issues/8316

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 4 years ago
parent 5b5decb99b
commit bcf37c937a
  1. 4
      .gitlab-ci.yml
  2. 2
      .gitlab-ci/debian-install.sh

@ -20,7 +20,7 @@ stages:
variables: variables:
FDO_DISTRIBUTION_VERSION: buster FDO_DISTRIBUTION_VERSION: buster
FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/debian-install.sh' FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/debian-install.sh'
FDO_DISTRIBUTION_TAG: '2020-09-30.0' FDO_DISTRIBUTION_TAG: '2021-02-15.0'
container_prep: container_prep:
@ -79,6 +79,8 @@ container_prep:
- build-*/meson-logs - build-*/meson-logs
- build-*/weston-virtme - build-*/weston-virtme
- prefix-* - prefix-*
reports:
junit: build-*/meson-logs/testlog.junit.xml
.build-native-meson-no-test: .build-native-meson-no-test:
extends: .build-native extends: .build-native

@ -94,7 +94,7 @@ apt-get -y --no-install-recommends install \
apt-get -y --no-install-recommends -t buster-backports install \ apt-get -y --no-install-recommends -t buster-backports install \
freerdp2-dev freerdp2-dev
pip3 install --user git+https://github.com/mesonbuild/meson.git@0.49 pip3 install --user git+https://github.com/mesonbuild/meson.git@0.57.0
export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/.local/bin:$PATH
# for documentation # for documentation
pip3 install sphinx==2.1.0 --user pip3 install sphinx==2.1.0 --user

Loading…
Cancel
Save