37 lines
1.1 KiB
Groovy
37 lines
1.1 KiB
Groovy
def tests = ['primitives', 'addressof', 'callback']
|
|
|
|
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
disableConcurrentBuilds()
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
|
}
|
|
|
|
stages {
|
|
stage('chibi') {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile.test'
|
|
args '--user=root'
|
|
additionalBuildArgs "--build-arg COMPILE_R7RS=${STAGE_NAME}"
|
|
}
|
|
}
|
|
environment {
|
|
IMPLEMENTATION="${STAGE_NAME}"
|
|
}
|
|
steps {
|
|
script {
|
|
tests.each { test ->
|
|
stage("${env.IMPLEMENTATION} ${test}") {
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
sh "make test-compile-r7rs COMPILE_R7RS=${env.IMPLEMENTATION} TESTNAME=${test}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|