Merge branch 'gitlab-ci-run-gtk-tests' into 'master'

gitlab-ci: run parts of the test suite

See merge request GNOME/gtk!22
This commit is contained in:
Emmanuele Bassi 2018-02-21 12:07:37 +00:00
commit 96f8eec50b
3 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,7 @@
FROM fedora:27
RUN dnf -y install \
adwaita-icon-theme \
atk-devel \
at-spi2-atk-devel \
avahi-gobject-devel \
@ -13,15 +14,18 @@ RUN dnf -y install \
gcc \
gcc-c++ \
gdk-pixbuf2-devel \
gdk-pixbuf2-modules \
gettext \
git \
glib2-devel \
gobject-introspection-devel \
graphene-devel \
iso-codes \
itstool \
json-glib-devel \
libepoxy-devel \
libmount-devel \
librsvg2 \
libXcomposite-devel \
libXcursor-devel \
libXcursor-devel \
@ -32,11 +36,13 @@ RUN dnf -y install \
libxkbcommon-devel \
libXrandr-devel \
libXrender-devel \
mesa-dri-drivers \
mesa-libEGL-devel \
mesa-libwayland-egl-devel \
meson \
pango-devel \
redhat-rpm-config \
sassc \
vulkan-devel \
wayland-devel \
wayland-protocols-devel \

View File

@ -2,8 +2,10 @@
set -e
sudo docker build --build-arg HOST_USER_ID="$UID" --tag "gitlab-gtk" \
TAG="lazka/gitlab-gtk:v1"
sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
--file "Dockerfile" .
sudo docker run --rm \
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
--tty --interactive "gitlab-gtk" bash
--tty --interactive "${TAG}" bash

View File

@ -7,3 +7,11 @@ meson -Denable-x11-backend=true -Denable-wayland-backend=true \
-Denable-broadway-backend=true -Denable-vulkan=yes _build_full
cd _build_full
ninja
xvfb-run -a -s "-screen 0 1024x768x24" \
meson test \
--print-errorlogs \
--suite=gtk+ \
--no-suite=gtk+:gdk \
--no-suite=gtk+:gsk \
--no-suite=gtk+:a11y