Improving tests

This commit is contained in:
retropikzel 2025-12-06 12:04:13 +02:00
parent 36f530d826
commit 7d352e9999
1 changed files with 19 additions and 15 deletions

34
Jenkinsfile vendored
View File

@ -28,36 +28,40 @@ pipeline {
stage('Tests') { stage('Tests') {
parallel { parallel {
stage('R6RS x86_64 Debian') { stage('R6RS x86_64 Debian') {
steps {
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" steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
}
}
} }
} }
} }
} }
} }
} }
}
} }
stage('R7RS x86_64 Debian') { stage('R7RS x86_64 Debian') {
steps { steps {
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"
}
} }
} }
} }