Improve Jenkins tests

This commit is contained in:
retropikzel 2026-07-03 07:53:44 +03:00
parent 74f4539718
commit 3577c64708
1 changed files with 19 additions and 21 deletions

40
Jenkinsfile vendored
View File

@ -32,17 +32,15 @@ pipeline {
} }
stages { stages {
parallel { stage('Test R6RS Debian') {
stage('Test R6RS Debian') { steps {
steps { script {
script { env.LIBRARIES.split().each { LIBRARY ->
env.LIBRARIES.split().each { LIBRARY -> stage("${LIBRARY}") {
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"
}
} }
} }
} }
@ -50,16 +48,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}") { 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"
} }
} }
} }