1
0
Fork 0

Fixing tests

This commit is contained in:
retropikzel 2025-10-09 10:54:59 +03:00
parent 19d3b40a4f
commit bcbfda5962
1 changed files with 16 additions and 10 deletions

26
Jenkinsfile vendored
View File

@ -24,21 +24,25 @@ pipeline {
} }
} }
/*
stage('Test R6RS implementations') { stage('Test R6RS implementations') {
steps { steps {
script { script {
def r6rs_implementations = "chezscheme guile ikarus ironscheme larceny loko mosh racket sagittarius ypsilon".split() def SCHEMES = "chezscheme guile ikarus ironscheme larceny loko mosh racket sagittarius ypsilon"
r6rs_implementations.collectEntries { SCHEME -> SCHEMES.split().each { SCHEME ->
[(SCHEME): {
stage("${SCHEME} R6RS") { stage("${SCHEME} R6RS") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { def IMG="${SCHEME}:head"
def DOCKERIMG="${SCHEME}:head" if("${SCHEME}" == "chicken") {
if("${SCHEME}" == "chicken") { IMG="${SCHEME}:5"
DOCKERIMG="chicken:5" }
agent {
docker {
image "schemers/${IMG}"
label "docker-x86_64"
args "--user=root"
} }
sh "docker build -f Dockerfile.test --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${SCHEME} --tag=compile-r7rs-test-${SCHEME} ." }
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t compile-r7rs-test-${SCHEME} sh -c \"make && make install && make SCHEME=${SCHEME} test-r6rs\"" catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} test-r6rs"
} }
} }
} }
@ -48,6 +52,8 @@ pipeline {
} }
} }
/*
stage('Test R7RS implementations') { stage('Test R7RS implementations') {
steps { steps {
script { script {