summaryrefslogtreecommitdiffstats
path: root/semaphoreci
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2020-06-25 00:32:00 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-06-25 10:47:33 +0200
commitefa5bef2850fba6789d206898c6b25613b154d03 (patch)
treef3df51b805e925d8a03bc23642c81ee1f0f710de /semaphoreci
parentMerge pull request #16265 from Werkov/fix-16248 (diff)
downloadsystemd-efa5bef2850fba6789d206898c6b25613b154d03.tar.xz
systemd-efa5bef2850fba6789d206898c6b25613b154d03.zip
ci: switch to Ubuntu Bionic on Semaphore
To judge from the settings page where I was kind of nudged into switching to Ubuntu 18.04 it looks like Ubuntu Xenial is deprecated there.
Diffstat (limited to 'semaphoreci')
-rwxr-xr-xsemaphoreci/semaphore-runner.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/semaphoreci/semaphore-runner.sh b/semaphoreci/semaphore-runner.sh
index 288b2efd04..6864a137b1 100755
--- a/semaphoreci/semaphore-runner.sh
+++ b/semaphoreci/semaphore-runner.sh
@@ -13,6 +13,7 @@ AUTOPKGTEST_DIR="${CACHE_DIR}/autopkgtest"
# semaphore cannot expose these, but useful for interactive/local runs
ARTIFACTS_DIR=/tmp/artifacts
PHASES=(${@:-SETUP RUN})
+UBUNTU_RELEASE="$(lsb_release -cs)"
create_container() {
# create autopkgtest LXC image; this sometimes fails with "Unable to fetch
@@ -51,9 +52,9 @@ for phase in "${PHASES[@]}"; do
sudo rm -f /etc/apt/sources.list.d/*
# enable backports for latest LXC
- echo 'deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list.d/backports.list
+ echo "deb http://archive.ubuntu.com/ubuntu $UBUNTU_RELEASE-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/backports.list
sudo apt-get -q update
- sudo apt-get install -y -t xenial-backports lxc
+ sudo apt-get install -y -t "$UBUNTU_RELEASE-backports" lxc
sudo apt-get install -y python3-debian git dpkg-dev fakeroot
[ -d $AUTOPKGTEST_DIR ] || git clone --quiet --depth=1 https://salsa.debian.org/ci-team/autopkgtest.git "$AUTOPKGTEST_DIR"