summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-04-07 10:05:20 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2019-04-07 10:08:35 +0200
commit3f0fff6bdce67636d33730ed7b9214fff19e74e7 (patch)
treeae966108e38c8dfd565e18e3ac59518cf3484ac8 /.gitlab-ci
parent0cfcc4352ec9efefec9d2d154c51372f6c1d2f0a (diff)
downloadpygobject-3f0fff6bdce67636d33730ed7b9214fff19e74e7.tar.gz
CI: add a helper script for running gnome-runtime-images in docker
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/run-docker-runtime.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci/run-docker-runtime.sh b/.gitlab-ci/run-docker-runtime.sh
new file mode 100755
index 00000000..0205ec6c
--- /dev/null
+++ b/.gitlab-ci/run-docker-runtime.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+TAG="registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
+
+sudo docker pull "${TAG}"
+sudo docker run --privileged --rm --security-opt label=disable \
+ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
+ --tty --interactive "${TAG}" xvfb-run -a flatpak run --filesystem=host \
+ --share=network --socket=x11 --command=bash org.gnome.Sdk//master