Testing dynamic Jenkinsfile
This commit is contained in:
parent
24bcacfe0f
commit
00544add99
|
|
@ -1,15 +1,4 @@
|
||||||
def implementations = [
|
def tests = ['primitives']
|
||||||
'chibi',
|
|
||||||
'chicken',
|
|
||||||
'gauche',
|
|
||||||
'guile',
|
|
||||||
'kawa',
|
|
||||||
'mosh',
|
|
||||||
'racket',
|
|
||||||
'sagittarius',
|
|
||||||
'stklos',
|
|
||||||
'ypsilon'
|
|
||||||
]
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
@ -20,16 +9,14 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Testing') {
|
stage('chibi') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
implementations.each { implementation ->
|
tests.each { test ->
|
||||||
stage("Test ${implementation} primitives") {
|
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "docker build --build-arg COMPILE_R7RS=${implementation} --tag=r7rs-pffi-test-${implementation} -f Dockerfile.test ."
|
sh "docker build --build-arg COMPILE_R7RS=${STAGE_NAME} --tag=r7rs-pffi-test-${STAGE_NAME} -f Dockerfile.test ."
|
||||||
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make COMPILE_R7RS=${implementation} TESTNAME=primitives test-compile-r7rs\""
|
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${STAGE_NAME} sh -c \"make COMPILE_R7RS=${STAGE_NAME} TESTNAME=primitives test-compile-r7rs\""
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue