WIP: ci: test against trixie (#78771) #8

Draft
fpeters wants to merge 1 commits from wip/78771-trixie into main
2 changed files with 5 additions and 4 deletions

4
Jenkinsfile vendored
View File

@ -4,10 +4,10 @@ pipeline {
agent any
options { disableConcurrentBuilds() }
stages {
stage('Unit Tests (bullseye)') {
stage('Unit Tests (trixie)') {
steps {
catchError(stageResult: 'FAILURE') {
sh 'sudo ./test-nspawn bullseye'
sh 'sudo ./test-nspawn trixie'
}
}
}

View File

@ -1,12 +1,13 @@
#!/bin/sh
set -ex
if [ $1 = bullseye ] || [ $1 = bookworm ]
if [ $1 = trixie ] || [ $1 = bookworm ]
then
suite=$1
image=publik-devinst-$suite
fs=/var/lib/machines/$image
test -d $fs || (cd /var/lib/machines && debootstrap --include=systemd-container $suite $image http://deb.debian.org/debian/)
if [ $suite = trixie ]; then suite=testing; fi
test -d $fs || (cd /var/lib/machines && debootstrap --include=systemd-container,dbus $suite $image http://deb.debian.org/debian/)
rsync -a --delete . $fs/opt/publik-devinst
systemd-nspawn -x -D $fs /opt/publik-devinst/test-nspawn run-tests
elif [ $1 = 'run-tests' ]