diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2018-11-20 12:27:31 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2019-02-28 11:00:09 -0800 |
commit | c7afb667dfe6d89588708d6498326fd9d1a4df37 (patch) | |
tree | 565e11503c7a6a57da4b11e3a3d1e643900e69b1 | |
parent | 309249599cd05ce5ff93750ffbaa452567bf7caa (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.yml | 13 | ||||
-rwxr-xr-x | test/gitlab-ci.sh | 6 |
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 |