Fixing tests

This commit is contained in:
retropikzel 2025-09-13 12:30:14 +03:00
parent 27f5232d98
commit 53d3d50b7c
1 changed files with 1 additions and 3 deletions

4
Jenkinsfile vendored
View File

@ -15,17 +15,15 @@ pipeline {
steps { steps {
script { script {
def implementations = sh(script: 'docker run retropikzel1/compile-r7rs sh -c "compile-r7rs --list-r7rs-schemes"', returnStdout: true).split() def implementations = sh(script: 'docker run retropikzel1/compile-r7rs sh -c "compile-r7rs --list-r7rs-schemes"', returnStdout: true).split()
//def implementations = "chibi chicken gauche guile kawa mosh racket sagittarius stklos ypsilon".split()
parallel implementations.collectEntries { implementation -> parallel implementations.collectEntries { implementation ->
[(implementation): { [(implementation): {
tests.each { test -> tests.each { test ->
stage("${implementation} ${test}") { stage("${implementation} ${test}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
def DOCKERIMG="${implementation}:head"
if("${implementation}" == "chicken") { if("${implementation}" == "chicken") {
DOCKERIMG="chicken:5" DOCKERIMG="chicken:5"
} else {
DOCKERIMG="${implementation}:head"
} }
sh "docker build --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${implementation} --tag=foreign-c-test-${implementation} -f Dockerfile.test ." sh "docker build --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${implementation} --tag=foreign-c-test-${implementation} -f Dockerfile.test ."
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make SCHEME=${implementation} TEST=${test} clean test\"" sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make SCHEME=${implementation} TEST=${test} clean test\""