summaryrefslogtreecommitdiff
path: root/.gitlab-ci/debian-install.sh
blob: c204760dad73b6ae3609e863aa784e8fc7575947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash

set -e
set -o xtrace

echo 'deb-src https://deb.debian.org/debian testing main' > /etc/apt/sources.list.d/deb-src.list
apt-get update
apt-get install -y \
	autoconf \
	automake \
	ca-certificates \
	ccache \
	git \
	libgl1 \
	libglx-mesa0 \
	libnvidia-egl-wayland-dev \
	libtool \
	libxkbcommon-dev \
	meson \
	python3-mako \
	python3-numpy \
	python3-six \
	x11-utils \
	x11-xserver-utils \
	xauth \
	xvfb \

apt-get build-dep -y xorg-server

cd /root

git clone https://gitlab.freedesktop.org/mesa/piglit.git --depth 1

git clone https://gitlab.freedesktop.org/xorg/test/xts --depth 1
cd xts
./autogen.sh
xvfb-run make -j${FDO_CI_CONCURRENT:-4}
cd ..

git clone https://gitlab.freedesktop.org/xorg/test/rendercheck --depth 1
cd rendercheck
meson build
ninja -j${FDO_CI_CONCURRENT:-4} -C build install
cd ..

rm -rf piglit/.git xts/.git piglit/tests/spec/ rendercheck/

echo '[xts]' > piglit/piglit.conf
echo 'path=/root/xts' >> piglit/piglit.conf

find -name \*.a -o -name \*.o -o -name \*.c -o -name \*.h -o -name \*.la\* | xargs rm
strip xts/xts5/*/.libs/*

apt-get purge -y \
	git \
	libxkbcommon-dev \
	x11-utils \
	x11-xserver-utils \
	xauth \
	xvfb \

apt-get autoremove -y --purge