1#!/usr/bin/env bash 2# shellcheck disable=SC2086 # we want word splitting 3 4# When changing this file, you need to bump the following 5# .gitlab-ci/image-tags.yml tags: 6# DEBIAN_PYUTILS_TAG 7 8set -e 9 10. .gitlab-ci/setup-test-env.sh 11 12set -o xtrace 13 14export DEBIAN_FRONTEND=noninteractive 15 16apt-get install -y ca-certificates 17sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/* 18echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list 19 20# Ephemeral packages (installed for this script and removed again at 21# the end) 22EPHEMERAL=( 23 binutils 24 build-essential 25 cpp 26 dpkg-dev 27 g++ 28 gcc 29 libc6-dev 30 perl 31 python3-dev 32) 33 34DEPS=( 35 apt-utils 36 curl 37 file 38 findutils 39 git 40 python3-pil 41 python3-pip 42 python3-ply 43 python3-setuptools 44 python3-venv 45 python3-yaml 46 shellcheck 47 xz-utils 48 yamllint 49 zstd 50) 51 52apt-get update 53 54apt-get install -y --no-remove --no-install-recommends "${DEPS[@]}" "${EPHEMERAL[@]}" \ 55 "${EXTRA_LOCAL_PACKAGES:-}" 56 57# Needed for ci-fairy, this revision is able to upload files to S3 58pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2 59 60pip3 install --break-system-packages -r bin/ci/test/requirements.txt 61 62############### Uninstall ephemeral packages 63 64apt-get purge -y "${EPHEMERAL[@]}" 65apt-get autoremove --purge -y 66 67. .gitlab-ci/container/container_post_build.sh 68