diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-03-10 14:19:08 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-03-10 14:19:08 +0000 |
commit | e7184e799d020d28e7fd61a8d23d1d1a178db30f (patch) | |
tree | 452408a6f81bc854eac7885699f4c514e712c944 /.gitlab-ci/run-docker.sh | |
parent | 222db5d1a5b846eca7432b25d1fbf4cf61672c56 (diff) | |
download | gobject-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.sh | 9 |
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 |