Improving tests

This commit is contained in:
retropikzel 2025-12-06 12:11:37 +02:00
parent 29d3acae8b
commit 9ec1836bd9
2 changed files with 32 additions and 30 deletions

8
Dockerfile.jenkins Normal file
View File

@ -0,0 +1,8 @@
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y \
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

26
Jenkinsfile vendored
View File

@ -1,8 +1,8 @@
pipeline {
agent {
docker {
dockerfile {
label 'docker-x86_64'
image 'debian'
filename 'Dockerfile.jenkins'
args '--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock'
}
}
@ -22,23 +22,17 @@ pipeline {
}
stages {
stage('Init') {
steps {
sh "apt-get update && apt-get install -y make docker.io git"
}
}
stage('Tests') {
parallel {
stage('R6RS x86_64 Debian') {
/*
stage('R6RS') {
steps {
script {
params.LIBRARIES.split().each { LIBRARY ->
stage("${LIBRARY}") {
stages {
params.R6RS_SCHEMES.split().each { SCHEME ->
def IMG="${SCHEME}:head"
stage("${SCHEME} - ${LIBRARY}") {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
}
@ -49,14 +43,14 @@ pipeline {
}
}
}
}
stage('R7RS x86_64 Debian') {
*/
stage('R7RS') {
steps {
script {
params.LIBRARIES.split().each { LIBRARY ->
stage("${LIBRARY}") {
stages {
params.R7RS_SCHEMES.split().each { SCHEME ->
params.R7RS_SCHEMES.collectEntries().each { SCHEME ->
[(SCHEME): {
def IMG="${SCHEME}:head"
if("${SCHEME}" == "chicken") {
IMG="${SCHEME}:5"
@ -67,7 +61,7 @@ pipeline {
}
}
}
}
}]
}
}
}