From 0a39893a4846d42f2e1fad539286692893ddc6a6 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 12 Aug 2018 21:16:10 +0200 Subject: ci: build and run tests in the gnome master flatpak runtime Allow failures for now as we don't control it and can't easily react if it breaks. --- .gitlab-ci.yml | 7 +++++++ .gitlab-ci/test-flatpak.sh | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100755 .gitlab-ci/test-flatpak.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e899b5d..21ce5982 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -116,3 +116,10 @@ xenial-i386-py2: image: registry.gitlab.gnome.org/gnome/pygobject/old:v2 script: - bash -x ./.gitlab-ci/test-docker-old.sh + +gnome-master: + allow_failure: true + stage: build_and_test + image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master + script: + - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash org.gnome.Sdk//master -x .gitlab-ci/test-flatpak.sh diff --git a/.gitlab-ci/test-flatpak.sh b/.gitlab-ci/test-flatpak.sh new file mode 100755 index 00000000..3e3a9923 --- /dev/null +++ b/.gitlab-ci/test-flatpak.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -e + +python3 -m pip install --user pytest +python3 setup.py test -- cgit v1.2.1