Fix testing

This commit is contained in:
retropikzel 2026-02-12 16:20:24 +02:00
parent 26504fbc82
commit 5fd55c5389
2 changed files with 5 additions and 11 deletions

View File

@ -1,8 +1,2 @@
FROM debian:trixie-slim FROM debian:trixie-slim
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y make docker.io
make ca-certificates git docker.io gauche time mit-scheme
WORKDIR /cache
RUN git clone https://codeberg.org/retropikzel/compile-scheme.git --depth=1
WORKDIR /cache/compile-scheme
RUN make build-gauche
RUN make install

8
Jenkinsfile vendored
View File

@ -14,6 +14,8 @@ pipeline {
} }
parameters { parameters {
string(name: 'R6RS_SCHEME', defaultValue: 'capyscheme chezscheme guile ikarus ironscheme loko mosh racket sagittarius ypsilon', description: '')
string(name: 'R7RS_SCHEME', defaultValue: 'capyscheme chibi chicken cyclone foment gauche gambit guile kawa larceny loko meevax mit-scheme mosh racket sagittarius skint stklos tr7 ypsilon', description: '')
string(name: 'LIBRARIES', defaultValue: 'ctrf mouth string url-encoding', description: '') string(name: 'LIBRARIES', defaultValue: 'ctrf mouth string url-encoding', description: '')
} }
@ -21,10 +23,9 @@ pipeline {
stage('R6RS tests') { stage('R6RS tests') {
steps { steps {
script { script {
def implementations = sh(script: 'compile-scheme --list-r6rs', returnStdout: true).split()
params.LIBRARIES.split().each { LIBRARY -> params.LIBRARIES.split().each { LIBRARY ->
stage("${LIBRARY}") { stage("${LIBRARY}") {
implementations.each { SCHEME -> params.R6RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME}") { stage("${SCHEME}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs run-test-docker" sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs run-test-docker"
@ -41,10 +42,9 @@ pipeline {
stage('R7RS tests') { stage('R7RS tests') {
steps { steps {
script { script {
def implementations = sh(script: 'compile-scheme --list-r7rs-except larceny', returnStdout: true).split()
params.LIBRARIES.split().each { LIBRARY -> params.LIBRARIES.split().each { LIBRARY ->
stage("${LIBRARY}") { stage("${LIBRARY}") {
implementations.each { SCHEME -> params.R7RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME}") { stage("${SCHEME}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs run-test-docker" sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs run-test-docker"