[virglrenderer-devel] [PATCH 2/2] Add CI configuration for Gitlab

Tomeu Vizoso tomeu.vizoso at collabora.com
Fri Apr 20 14:16:49 UTC 2018


Adds a simple script that configures a CI pipeline to be used in Gitlab
installations.

For now it only makes sure that make distcheck works when running under
LLVMPipe.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
 .gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000000..a6000ea1d480
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+image: debian:unstable
+
+before_script:
+   - echo deb-src http://deb.debian.org/debian unstable main >> /etc/apt/sources.list
+   - apt-get update
+   - apt-get -y build-dep virglrenderer
+   - apt-get -y install check
+   - mkdir -p /dev/dri
+   - touch /dev/dri/renderD128 # Both surfaceless and kms_swrast need a device file
+
+build:
+  stage: build
+  script:
+  - ./autogen.sh
+  - export MESA_GL_VERSION_OVERRIDE=3.3 # Not sure why LLVMPipe claims to only support OpenGL 2.1
+  - export LIBGL_ALWAYS_SOFTWARE=true GALLIUM_DRIVER=llvmpipe VIRGL_EGL_SURFACELESS=yes
+  - make -j$(nproc) distcheck
+
+after_script:
+  - cat ./virglrenderer-*/_build/sub/tests/test-suite.log # This file will be there only if the tests failed
-- 
2.17.0



More information about the virglrenderer-devel mailing list