2019-11-18 08:23:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2019-12-13 10:02:16 +00:00
|
|
|
apt-get install -y \
|
|
|
|
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
|
2019-11-18 08:23:18 +00:00
|
|
|
|
|
|
|
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 \
|
2020-02-12 21:21:07 +00:00
|
|
|
git-lfs \
|
2019-11-18 08:23:18 +00:00
|
|
|
gcc \
|
|
|
|
libexpat1 \
|
|
|
|
libgbm-dev \
|
|
|
|
libgles2-mesa-dev \
|
2020-02-20 12:18:54 +00:00
|
|
|
liblz4-1 \
|
|
|
|
liblz4-dev \
|
2019-11-18 08:23:18 +00:00
|
|
|
libpng16-16 \
|
|
|
|
libpng-dev \
|
|
|
|
libvulkan1 \
|
|
|
|
libvulkan-dev \
|
2020-02-20 12:18:54 +00:00
|
|
|
libwayland-client0 \
|
2019-11-18 08:23:18 +00:00
|
|
|
libwayland-server0 \
|
2020-02-20 15:09:03 +00:00
|
|
|
libxcb-ewmh2 \
|
|
|
|
libxcb-ewmh-dev \
|
|
|
|
libxcb-keysyms1 \
|
|
|
|
libxcb-keysyms1-dev \
|
2019-11-18 08:26:00 +00:00
|
|
|
libxcb-randr0 \
|
2019-11-18 08:23:18 +00:00
|
|
|
libxcb-xfixes0 \
|
|
|
|
libxkbcommon0 \
|
|
|
|
libxkbcommon-dev \
|
2020-02-20 15:09:03 +00:00
|
|
|
libxrandr2 \
|
|
|
|
libxrandr-dev \
|
2019-11-18 08:23:18 +00:00
|
|
|
libxrender1 \
|
|
|
|
libxrender-dev \
|
2019-12-13 10:02:16 +00:00
|
|
|
libllvm9 \
|
2019-11-18 08:23:18 +00:00
|
|
|
meson \
|
|
|
|
patch \
|
|
|
|
pkg-config \
|
2019-11-18 08:26:00 +00:00
|
|
|
python3-distutils \
|
2020-02-12 21:21:07 +00:00
|
|
|
python3-pil \
|
|
|
|
python3-yaml \
|
2019-11-18 08:23:18 +00:00
|
|
|
python \
|
|
|
|
xauth \
|
|
|
|
xvfb
|
|
|
|
|
|
|
|
|
2019-11-18 08:24:27 +00:00
|
|
|
############### Build dEQP runner
|
|
|
|
|
|
|
|
. .gitlab-ci/build-cts-runner.sh
|
|
|
|
|
2019-11-18 08:26:00 +00:00
|
|
|
############### Build dEQP VK
|
|
|
|
|
|
|
|
. .gitlab-ci/build-deqp-vk.sh
|
|
|
|
|
2020-02-20 12:18:54 +00:00
|
|
|
############### Build gfxreconstruct
|
|
|
|
|
|
|
|
. .gitlab-ci/build-gfxreconstruct.sh
|
2019-11-18 08:23:18 +00:00
|
|
|
|
2020-02-20 15:09:03 +00:00
|
|
|
############### Build VulkanTools
|
|
|
|
|
|
|
|
. .gitlab-ci/build-vulkantools.sh
|
|
|
|
|
2019-11-18 08:23:18 +00:00
|
|
|
############### Uninstall the build software
|
|
|
|
|
|
|
|
apt-get purge -y \
|
|
|
|
cmake \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
2019-12-13 10:02:16 +00:00
|
|
|
gnupg \
|
2019-11-18 08:23:18 +00:00
|
|
|
libgbm-dev \
|
|
|
|
libgles2-mesa-dev \
|
2020-02-20 12:18:54 +00:00
|
|
|
liblz4-dev \
|
2019-11-18 08:23:18 +00:00
|
|
|
libpng-dev \
|
|
|
|
libvulkan-dev \
|
2020-02-20 15:09:03 +00:00
|
|
|
libxcb-ewmh-dev \
|
|
|
|
libxcb-keysyms1-dev \
|
2019-11-18 08:23:18 +00:00
|
|
|
libxkbcommon-dev \
|
2020-02-20 15:09:03 +00:00
|
|
|
libxrandr-dev \
|
2019-11-18 08:23:18 +00:00
|
|
|
libxrender-dev \
|
|
|
|
meson \
|
|
|
|
patch \
|
2020-02-12 21:21:07 +00:00
|
|
|
pkg-config
|
2019-11-18 08:23:18 +00:00
|
|
|
|
|
|
|
apt-get autoremove -y --purge
|