Improving tests

This commit is contained in:
retropikzel 2025-12-06 08:43:03 +02:00
parent c48baadae6
commit e18726d273
1 changed files with 17 additions and 13 deletions

30
Jenkinsfile vendored
View File

@ -32,11 +32,13 @@ pipeline {
script { script {
params.LIBRARIES.split().each { LIBRARY -> params.LIBRARIES.split().each { LIBRARY ->
stage("${LIBRARY}") { stage("${LIBRARY}") {
params.R6RS_SCHEMES.split().each { SCHEME -> stages {
def IMG="${SCHEME}:head" params.R6RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME} - ${LIBRARY}") { def IMG="${SCHEME}:head"
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { stage("${SCHEME} - ${LIBRARY}") {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker" catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
}
} }
} }
} }
@ -50,14 +52,16 @@ pipeline {
script { script {
params.LIBRARIES.split().each { LIBRARY -> params.LIBRARIES.split().each { LIBRARY ->
stage("${LIBRARY}") { stage("${LIBRARY}") {
params.R7RS_SCHEMES.split().each { SCHEME -> stages {
def IMG="${SCHEME}:head" params.R7RS_SCHEMES.split().each { SCHEME ->
if("${SCHEME}" == "chicken") { def IMG="${SCHEME}:head"
IMG="${SCHEME}:5" if("${SCHEME}" == "chicken") {
} IMG="${SCHEME}:5"
stage("${SCHEME} - ${LIBRARY}") { }
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { stage("${SCHEME} - ${LIBRARY}") {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker" catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker"
}
} }
} }
} }