Improve Jenkins tests

This commit is contained in:
retropikzel 2026-07-04 11:27:37 +03:00
parent f61f42316d
commit 80cea096f8
1 changed files with 24 additions and 20 deletions

44
Jenkinsfile vendored
View File

@ -34,32 +34,36 @@ pipeline {
} }
stages { stages {
stage('Test R6RS Debian') { stage('Parallel') {
steps { parallel {
script { stage('Test R6RS Debian') {
env.LIBRARIES.split().each { LIBRARY -> steps {
stage("${LIBRARY}") { script {
env.R6RS_SCHEMES.split().each { SCHEME -> env.LIBRARIES.split().each { LIBRARY ->
stage("${SCHEME}") { stage("${LIBRARY}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { env.R6RS_SCHEMES.split().each { SCHEME ->
sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker" stage("${SCHEME}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker"
}
}
} }
} }
} }
} }
} }
} }
} stage('Test R7RS Debian') {
} steps {
stage('Test R7RS Debian') { script {
steps { env.LIBRARIES.split().each { LIBRARY ->
script { stage("${LIBRARY}") {
env.LIBRARIES.split().each { LIBRARY -> env.R7RS_SCHEMES.split().each { SCHEME ->
stage("${LIBRARY}") { stage("${SCHEME}") {
env.R7RS_SCHEMES.split().each { SCHEME -> catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
stage("${SCHEME}") { sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker"
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { }
sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker" }
} }
} }
} }