ci: test against trixie (#78771)
gitea/publik-devinst/pipeline/head There was a failure building this commit Details

This commit is contained in:
Frédéric Péters 2023-06-20 14:39:41 +02:00
parent acafa22455
commit 8bd3b52b51
2 changed files with 9 additions and 8 deletions

14
Jenkinsfile vendored
View File

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

View File

@ -1,11 +1,12 @@
#!/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
if [ $suite = trixie]; suite=testing; fi
test -d $fs || (cd /var/lib/machines && debootstrap --include=systemd-container $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