Improve Jenkins tests

This commit is contained in:
retropikzel 2026-07-03 08:47:49 +03:00
parent 8c282b6679
commit c8c9b6fd36
1 changed files with 22 additions and 22 deletions

44
Jenkinsfile vendored
View File

@ -33,16 +33,18 @@ 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 {
parallel { env.LIBRARIES.split().each { LIBRARY ->
env.R6RS_SCHEMES.split().each { SCHEME -> stage("${LIBRARY}") {
stage("${SCHEME}") { env.R6RS_SCHEMES.split().each { SCHEME ->
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { stage("${SCHEME}") {
sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker" catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker"
}
} }
} }
} }
@ -50,18 +52,16 @@ pipeline {
} }
} }
} }
} 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}") {
parallel { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
env.R7RS_SCHEMES.split().each { SCHEME -> sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker"
stage("${SCHEME}") { }
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker"
} }
} }
} }