WIP: ci: test against trixie (#78771) #8
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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' ]
|
||||
|
|
Loading…
Reference in New Issue