Improve Jenkins tests

This commit is contained in:
retropikzel 2026-07-03 10:51:00 +03:00
parent ba5a8bc290
commit 34e2e80664
1 changed files with 22 additions and 22 deletions

44
Jenkinsfile vendored
View File

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