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 \
|
2020-03-07 23:29:02 +00:00
|
|
|
ca-certificates \
|
|
|
|
gnupg
|
2019-12-13 10:02:16 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
apt-get dist-upgrade -y
|
|
|
|
|
|
|
|
apt-get install -y --no-remove \
|
2020-03-06 21:23:20 +00:00
|
|
|
ccache \
|
2019-11-18 08:23:18 +00:00
|
|
|
cmake \
|
|
|
|
g++ \
|
2020-03-07 23:32:17 +00:00
|
|
|
gcc \
|
2019-11-18 08:23:18 +00:00
|
|
|
git \
|
2020-02-12 21:21:07 +00:00
|
|
|
git-lfs \
|
2019-11-18 08:23:18 +00:00
|
|
|
libexpat1 \
|
|
|
|
libgbm-dev \
|
|
|
|
libgles2-mesa-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libllvm9 \
|
2020-02-20 12:18:54 +00:00
|
|
|
liblz4-1 \
|
|
|
|
liblz4-dev \
|
2019-11-18 08:23:18 +00:00
|
|
|
libpng-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libpng16-16 \
|
2019-11-18 08:23:18 +00:00
|
|
|
libvulkan-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libvulkan1 \
|
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-ewmh-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libxcb-ewmh2 \
|
2020-02-20 15:09:03 +00:00
|
|
|
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 \
|
|
|
|
libxkbcommon-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libxkbcommon0 \
|
2020-02-20 15:09:03 +00:00
|
|
|
libxrandr-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libxrandr2 \
|
2019-11-18 08:23:18 +00:00
|
|
|
libxrender-dev \
|
2020-03-07 23:32:17 +00:00
|
|
|
libxrender1 \
|
2019-11-18 08:23:18 +00:00
|
|
|
meson \
|
|
|
|
pkg-config \
|
2020-03-07 23:32:17 +00:00
|
|
|
python \
|
2019-11-18 08:26:00 +00:00
|
|
|
python3-distutils \
|
2020-02-12 21:21:07 +00:00
|
|
|
python3-pil \
|
2020-03-18 09:52:53 +00:00
|
|
|
python3-requests \
|
2020-02-12 21:21:07 +00:00
|
|
|
python3-yaml \
|
2019-11-18 08:23:18 +00:00
|
|
|
xauth \
|
|
|
|
xvfb
|
|
|
|
|
2020-03-06 21:23:20 +00:00
|
|
|
. .gitlab-ci/container/container_pre_build.sh
|
2019-11-18 08:23:18 +00:00
|
|
|
|
2019-11-18 08:24:27 +00:00
|
|
|
############### Build dEQP runner
|
|
|
|
|
|
|
|
. .gitlab-ci/build-cts-runner.sh
|
|
|
|
|
2020-02-26 08:32:41 +00:00
|
|
|
############### Build Fossilize
|
|
|
|
|
|
|
|
. .gitlab-ci/build-fossilize.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
|
|
|
|
|
2020-03-06 21:23:20 +00:00
|
|
|
ccache --show-stats
|
|
|
|
|
2019-11-18 08:23:18 +00:00
|
|
|
apt-get purge -y \
|
2020-03-06 21:23:20 +00:00
|
|
|
ccache \
|
2019-11-18 08:23:18 +00:00
|
|
|
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 \
|
2020-02-12 21:21:07 +00:00
|
|
|
pkg-config
|
2019-11-18 08:23:18 +00:00
|
|
|
|
|
|
|
apt-get autoremove -y --purge
|