Testing dynamic Jenkinsfile

This commit is contained in:
retropikzel 2025-06-05 22:03:23 +03:00
parent cbe71342d0
commit 23422deaf6
1 changed files with 16 additions and 6 deletions

22
Jenkinsfile vendored
View File

@ -1,4 +1,15 @@
def tests = ['primitives'] def implementations = [
'chibi',
'chicken',
'gauche',
'guile',
'kawa',
'mosh',
'racket',
'sagittarius',
'stklos',
'ypsilon'
]
pipeline { pipeline {
agent { agent {
@ -14,14 +25,13 @@ pipeline {
} }
stages { stages {
stage('Chibi') { stage('Testing') {
agent { dockerfile { filename 'Dockerfile.test'; args '--user=root' additionalBuildArgs "--build-arg COMPILE_R7RS=${STAGE_NAME}" } }
steps { steps {
script { script {
tests.each { test -> implementations.each { implementation ->
stage("Test ${ṢTAGE_NAME} primitives") { stage("Test ${implementation} primitives") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make test-compile-r7rs COMPILE_R7RS=${STAGE_NAME} TESTNAME=${test}" sh "make test-compile-r7rs-docker COMPILE_R7RS=${implementation} TESTNAME=primitives"
} }
} }
} }