mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
5c4938e479
While we don't have an high number of tests, we still have some code coverage and so we can track this via gitlab CI, given that it supports it natively. So add gcovr to the DockerFile dependency, build with -Db_coverage=true meson native parameter, and add another manual job to make ninja to generate the coverage reports on requests or in any master or tag ref. Keep the artifacts around to be able to browse the generated HTML files and eventually print the text reports so that they can be parsed by gitlab. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1236
28 lines
921 B
Docker
28 lines
921 B
Docker
# Rebuild and push with
|
|
#
|
|
# cd .gitlab-ci/
|
|
# podman build --format docker --no-cache -t registry.gitlab.gnome.org/gnome/mutter/master:v4 .
|
|
# podman push registry.gitlab.gnome.org/gnome/mutter/master:v4
|
|
#
|
|
|
|
FROM fedora:32
|
|
|
|
RUN dnf -y update && dnf -y upgrade && \
|
|
dnf install -y 'dnf-command(builddep)' && \
|
|
dnf install -y 'dnf-command(copr)' && \
|
|
dnf copr enable -y jadahl/mutter-ci && \
|
|
|
|
dnf builddep -y mutter --setopt=install_weak_deps=False && \
|
|
|
|
# For running unit tests
|
|
dnf install -y xorg-x11-server-Xvfb mesa-dri-drivers dbus dbus-x11 \
|
|
'*/xvfb-run' gdm-lib accountsservice-libs gnome-control-center gcovr \
|
|
--setopt=install_weak_deps=False && \
|
|
|
|
# GNOME Shell
|
|
dnf builddep -y gnome-shell --setopt=install_weak_deps=False && \
|
|
dnf remove -y gnome-bluetooth-libs-devel && \
|
|
dnf remove -y --noautoremove mutter mutter-devel && \
|
|
|
|
dnf clean all
|