summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-docker-minimal.sh
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-11-14 18:24:14 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2019-11-14 18:31:07 +0100
commitfde50458dd9e7ea209d486ae315799eb9dc4ec36 (patch)
tree3305bb1ae396fd08d756b17c8afde04a9b95abf3 /.gitlab-ci/run-docker-minimal.sh
parent441926c7d5da515c865a3bc4a3d1d996a6b64b67 (diff)
downloadgobject-introspection-fde50458dd9e7ea209d486ae315799eb9dc4ec36.tar.gz
CI: add a job that builds glib as a subproject
In our case we have to do various special things in case glib isn't available through pkg-config and not all tests are run. Add a CI job that tests this case so we don't regress.
Diffstat (limited to '.gitlab-ci/run-docker-minimal.sh')
-rwxr-xr-x.gitlab-ci/run-docker-minimal.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci/run-docker-minimal.sh b/.gitlab-ci/run-docker-minimal.sh
new file mode 100755
index 00000000..36b2d376
--- /dev/null
+++ b/.gitlab-ci/run-docker-minimal.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+TAG="registry.gitlab.gnome.org/gnome/gobject-introspection:min-v1"
+
+sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
+ --file "minimal.Dockerfile" .
+sudo docker run --rm \
+ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
+ --tty --interactive "${TAG}" bash