Improving testing

This commit is contained in:
retropikzel 2025-11-28 14:41:49 +02:00
parent 3a1c0e8ab0
commit 03c3bc9e62
1 changed files with 18 additions and 13 deletions

13
Jenkinsfile vendored
View File

@ -15,6 +15,7 @@ pipeline {
parameters { parameters {
string(name: 'R7RS_SCHEMES', defaultValue: 'chibi chicken gauche guile kawa mosh racket sagittarius stklos ypsilon', description: '') string(name: 'R7RS_SCHEMES', defaultValue: 'chibi chicken gauche guile kawa mosh racket sagittarius stklos ypsilon', description: '')
string(name: 'R6RS_SCHEMES', defaultValue: 'chezscheme guile ikarus ironscheme mosh racket sagittarius ypsilon', description: '') string(name: 'R6RS_SCHEMES', defaultValue: 'chezscheme guile ikarus ironscheme mosh racket sagittarius ypsilon', description: '')
string(name: 'LIBRARIES', defaultValue: 'system', description: '')
} }
stages { stages {
@ -29,11 +30,13 @@ pipeline {
stage('R6RS x86_64 Debian') { stage('R6RS x86_64 Debian') {
steps { steps {
script { script {
params.LIBRARIES.split().each { LIBRARY ->
params.R6RS_SCHEMES.split().each { SCHEME -> params.R6RS_SCHEMES.split().each { SCHEME ->
def IMG="${SCHEME}:head" def IMG="${SCHEME}:head"
stage("${SCHEME}") { stage("${SCHEME} - ${LIBRARY}") {k
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 6000 make SCHEME=${SCHEME} test-r6rs-docker" sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
}
} }
} }
} }
@ -43,14 +46,16 @@ pipeline {
stage('R7RS x86_64 Debian') { stage('R7RS x86_64 Debian') {
steps { steps {
script { script {
params.LIBRARIES.split().each { LIBRARY ->
params.R7RS_SCHEMES.split().each { SCHEME -> params.R7RS_SCHEMES.split().each { SCHEME ->
def IMG="${SCHEME}:head" def IMG="${SCHEME}:head"
if("${SCHEME}" == "chicken") { if("${SCHEME}" == "chicken") {
IMG="${SCHEME}:5" IMG="${SCHEME}:5"
} }
stage("${SCHEME}") { stage("${SCHEME} - ${LIBRARY}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 6000 make SCHEME=${SCHEME} test-r7rs-docker" sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker"
}
} }
} }
} }