aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci/container
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-11-18 09:23:18 +0100
committerSamuel Pitoiset <[email protected]>2019-12-06 10:57:48 +0100
commitf2a594f384aee8217c5a5fd7f5378c0cc72cc9ed (patch)
tree91c9dab6839f24abdf173b32b070b16e0375febc /.gitlab-ci/container
parent520a77d486c843ea58e41a869df18627943afd1a (diff)
gitlab-ci: add a new job that builds a base test image for VK
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to '.gitlab-ci/container')
-rw-r--r--.gitlab-ci/container/x86_test-vk.sh70
1 files changed, 70 insertions, 0 deletions
diff --git a/.gitlab-ci/container/x86_test-vk.sh b/.gitlab-ci/container/x86_test-vk.sh
new file mode 100644
index 00000000000..533d804d07e
--- /dev/null
+++ b/.gitlab-ci/container/x86_test-vk.sh
@@ -0,0 +1,70 @@
+#!/bin/bash
+
+set -e
+set -o xtrace
+
+export DEBIAN_FRONTEND=noninteractive
+
+apt-get install -y ca-certificates
+
+sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
+echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
+
+apt-get update
+
+# Use newer packages from backports by default
+cat >/etc/apt/preferences <<EOF
+Package: *
+Pin: release a=buster-backports
+Pin-Priority: 500
+EOF
+
+apt-get dist-upgrade -y
+
+apt-get install -y --no-remove \
+ cmake \
+ g++ \
+ git \
+ gcc \
+ libexpat1 \
+ libgbm-dev \
+ libgles2-mesa-dev \
+ libpng16-16 \
+ libpng-dev \
+ libvulkan1 \
+ libvulkan-dev \
+ libwayland-server0 \
+ libxcb-xfixes0 \
+ libxkbcommon0 \
+ libxkbcommon-dev \
+ libxrender1 \
+ libxrender-dev \
+ meson \
+ patch \
+ pkg-config \
+ python \
+ xauth \
+ xvfb
+
+
+# TODO: build dEQP runner and dEQP VK.
+
+############### Uninstall the build software
+
+apt-get purge -y \
+ cmake \
+ g++ \
+ gcc \
+ git \
+ libgbm-dev \
+ libgles2-mesa-dev \
+ libpng-dev \
+ libvulkan-dev \
+ libxkbcommon-dev \
+ libxrender-dev \
+ meson \
+ patch \
+ pkg-config \
+ python
+
+apt-get autoremove -y --purge