Skip to content
Snippets Groups Projects
Commit 41c3958b authored by Simon McVittie's avatar Simon McVittie
Browse files

CI: Only explicitly test populate-depot.py on Debian


We have two use-cases for this script: we use it to build production
runtime releases, which we can do in an environment that we control,
and we use it from tests/pressure-vessel/prepare-test-depots.sh as
part of testing pressure-vessel.

For the first use-case, we don't need to care about Ubuntu or Arch:
we can use any OS image of our choice, and in this case, we have
chosen to use Debian.

For the second use-case, we don't need to test the script exhaustively:
as long as tests/pressure-vessel/prepare-test-depots.sh succeeds, we're
happy with that.

Helps: steamrt/tasks#248
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent b9d44c0c
No related branches found
No related tags found
1 merge request!542CI improvements
......@@ -497,34 +497,6 @@ test-populate-depot:debian-11:
extends: .test-populate-depot:deb
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/debian:bullseye-slim
test-populate-depot:ubuntu-18.04:
extends: .test-populate-depot:deb
image: ubuntu:18.04
# The same, but for Arch
test-populate-depot:archlinux:
extends: .test-populate-depot
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/archlinux:latest
before_script:
- |
set -eux
echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
pacman -Syu --needed --noconfirm --noprogressbar \
base-devel \
git \
perl \
python \
python-chardet \
python-six \
python-tappy \
sudo \
${NULL+}
tempdir="$(mktemp -d)"
git clone --branch debian/buster https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.steamos.cloud/packaging/python-debian.git "$tempdir/python-debian"
git clone --branch steamrt/soldier https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.steamos.cloud/packaging/python-vdf.git "$tempdir/python-vdf"
export PATH="/usr/bin/core_perl:$PATH"
export PYTHONPATH="$tempdir/python-debian/lib:$tempdir/python-vdf"
reuse:
stage: test
needs: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment