Testing dynamic Jenkinsfile
This commit is contained in:
parent
cbe71342d0
commit
23422deaf6
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue