1#!/bin/bash 2 3set -e 4set -o xtrace 5 6export DEBIAN_FRONTEND=noninteractive 7 8apt-get install -y ca-certificates gnupg2 software-properties-common 9 10sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list 11 12# Ephemeral packages (installed for this script and removed again at 13# the end) 14STABLE_EPHEMERAL=" \ 15 cargo \ 16 python3-dev \ 17 python3-pip \ 18 python3-setuptools \ 19 python3-wheel \ 20 " 21 22# Add llvm 13 to the build image 23apt-key add .gitlab-ci/container/debian/llvm-snapshot.gpg.key 24add-apt-repository "deb https://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-13 main" 25 26apt-get update 27apt-get dist-upgrade -y 28 29apt-get install -y --no-remove \ 30 git \ 31 git-lfs \ 32 libasan6 \ 33 libexpat1 \ 34 libllvm13 \ 35 libllvm11 \ 36 libllvm9 \ 37 liblz4-1 \ 38 libpng16-16 \ 39 libpython3.9 \ 40 libvulkan1 \ 41 libwayland-client0 \ 42 libwayland-server0 \ 43 libxcb-ewmh2 \ 44 libxcb-randr0 \ 45 libxcb-xfixes0 \ 46 libxkbcommon0 \ 47 libxrandr2 \ 48 libxrender1 \ 49 python3-mako \ 50 python3-numpy \ 51 python3-packaging \ 52 python3-pil \ 53 python3-requests \ 54 python3-six \ 55 python3-yaml \ 56 vulkan-tools \ 57 waffle-utils \ 58 xauth \ 59 xvfb \ 60 zlib1g 61 62apt-get install -y --no-install-recommends \ 63 $STABLE_EPHEMERAL 64 65# Needed for ci-fairy, this revision is able to upload files to MinIO 66# and doesn't depend on git 67pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2 68 69############### Build dEQP runner 70. .gitlab-ci/container/build-deqp-runner.sh 71rm -rf ~/.cargo 72 73apt-get purge -y $STABLE_EPHEMERAL 74 75apt-get autoremove -y --purge 76