summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-docker.sh
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-03-10 14:19:08 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-03-10 14:19:08 +0000
commite7184e799d020d28e7fd61a8d23d1d1a178db30f (patch)
tree452408a6f81bc854eac7885699f4c514e712c944 /.gitlab-ci/run-docker.sh
parent222db5d1a5b846eca7432b25d1fbf4cf61672c56 (diff)
downloadgobject-introspection-e7184e799d020d28e7fd61a8d23d1d1a178db30f.tar.gz
Add CI environment for gobject-introspection
Based on the GLib and GTK equivalent CI environment, with a Docker container used to run the build.
Diffstat (limited to '.gitlab-ci/run-docker.sh')
-rwxr-xr-x.gitlab-ci/run-docker.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh
new file mode 100755
index 00000000..91694fb3
--- /dev/null
+++ b/.gitlab-ci/run-docker.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+sudo docker build --build-arg HOST_USER_ID="$UID" --tag "gitlab-gi" \
+ --file "Dockerfile" .
+sudo docker run --rm \
+ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
+ --tty --interactive "gitlab-gi" bash