summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2018-11-20 12:27:31 -0800
committerAaron Plattner <aplattner@nvidia.com>2019-02-28 11:00:09 -0800
commitc7afb667dfe6d89588708d6498326fd9d1a4df37 (patch)
tree565e11503c7a6a57da4b11e3a3d1e643900e69b1
parent309249599cd05ce5ff93750ffbaa452567bf7caa (diff)
Add .gitlab-ci.yml
This builds libvdpau and runs the tests, although the only test at the moment is dlclose and it is skipped because there is no X server running in the Docker environment. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-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