summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml13
-rwxr-xr-xtest/gitlab-ci.sh6
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..7e45978
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,13 @@
+image: docker:latest
+services:
+ - docker:dind
+
+before_script:
+ - echo FROM nwnk/xserver-travis-rawhide:v5 > Dockerfile
+ - echo ADD . /root >> Dockerfile
+ - echo WORKDIR /root >> Dockerfile
+ - docker build -t withgit .
+
+job:
+ script:
+ - docker run --volume $HOME/.ccache:/root/.ccache withgit ./test/gitlab-ci.sh
diff --git a/test/gitlab-ci.sh b/test/gitlab-ci.sh
new file mode 100755
index 0000000..ac93cac
--- /dev/null
+++ b/test/gitlab-ci.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -x
+
+meson setup build/
+meson configure -Dprefix=/usr -Ddri2=true build/
+ninja -C build/ install test