From c7afb667dfe6d89588708d6498326fd9d1a4df37 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 20 Nov 2018 12:27:31 -0800 Subject: 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 --- .gitlab-ci.yml | 13 +++++++++++++ test/gitlab-ci.sh | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100755 test/gitlab-ci.sh 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 -- cgit v1.2.3