export DEBIAN_FRONTEND=noninteractive
apt-get install -y \
- ca-certificates \
- gnupg \
+ ca-certificates \
+ gnupg
# Upstream LLVM package repository
apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
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
+echo 'deb https://deb.debian.org/debian testing main' >/etc/apt/sources.list.d/testing.list
apt-get update
-# Use newer packages from backports by default
+# Don't use newer packages from testing by default
cat >/etc/apt/preferences <<EOF
Package: *
-Pin: release a=buster-backports
-Pin-Priority: 500
+Pin: release a=testing
+Pin-Priority: 100
EOF
apt-get dist-upgrade -y
apt-get install -y --no-remove \
autoconf \
automake \
+ ccache \
cmake \
g++ \
- git \
- git-lfs \
gcc \
+ git \
libexpat1 \
libgbm-dev \
libgles2-mesa-dev \
- libpcre32-3 \
+ libllvm9 \
libpcre3-dev \
- libpng16-16 \
+ libpcre32-3 \
libpng-dev \
+ libpng16-16 \
libpython3.7 \
- libvulkan1 \
libvulkan-dev \
+ libvulkan1 \
libwaffle-dev \
libwayland-server0 \
libxcb-keysyms1 \
libxcb-keysyms1-dev \
libxcb-xfixes0 \
- libxkbcommon0 \
libxkbcommon-dev \
- libxrender1 \
+ libxkbcommon0 \
libxrender-dev \
- libllvm9 \
+ libxrender1 \
make \
meson \
patch \
pkg-config \
python \
- python3.7 \
- python3.7-dev \
python3-distutils \
python3-mako \
python3-numpy \
python3-pil \
- python3-pilkit \
+ python3-pytest \
+ python3-requests \
python3-six \
python3-yaml \
+ python3.7 \
+ python3.7-dev \
qt5-default \
qt5-qmake \
waffle-utils \
+ wget \
xauth \
xvfb \
+ xz-utils \
zlib1g
+# Install packages we need from Debian testing last, to avoid pulling in more
+apt-get install -y -t testing \
+ libc6-dev
+
+
+. .gitlab-ci/container/container_pre_build.sh
+
+############### Build virglrenderer
+
+. .gitlab-ci/build-virglrenderer.sh
############### Build piglit
############### Uninstall the build software
+ccache --show-stats
+
apt-get purge -y \
autoconf \
automake \
+ ccache \
cmake \
g++ \
gcc \
meson \
patch \
pkg-config \
+ python3-distutils \
python3.7-dev \
- python3-distutils
+ wget \
+ xz-utils
apt-get autoremove -y --purge