New builds

This commit is contained in:
retropikzel 2026-07-22 16:05:22 +03:00
parent 959fc2f83d
commit 93f78aa11c
2 changed files with 32 additions and 40 deletions

58
Jenkinsfile vendored
View File

@ -1,11 +1,6 @@
pipeline { pipeline {
agent { agent {
dockerfile { label 'docker'
label 'docker-x86_64'
filename 'Dockerfile.jenkins'
args '-t --user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock'
reuseNode true
}
} }
triggers { triggers {
@ -26,43 +21,26 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
} }
environment {
R6RS_SCHEMES='capyscheme chezscheme guile ikarus ironscheme loko mosh racket sagittarius ypsilon'
R7RS_SCHEMES='capyscheme chibi chicken cyclone foment gauche gambit kawa loko meevax mosh racket sagittarius skint stklos tr7 ypsilon'
LIBRARIES='tap junit debug lambda-utils ctrf mouth string url-encoding leb128 hardware-info'
}
stages { stages {
stage('Parallel') { stage('Build') {
parallel { steps {
stage('R6RS tests') { def config = readYaml file: buildconfig.yaml
steps { script {
script { config.schemes.each { scheme ->
env.LIBRARIES.split().each { LIBRARY -> stage("${scheme}") {
stage("${LIBRARY}") { agent {
env.R6RS_SCHEMES.split().each { SCHEME -> docker {
stage("${SCHEME}") { image "schemers/${scheme}:${scheme.docker-tag}"
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r6rs test-docker"
}
}
}
} }
} }
} environment {
} COMPILE_R7RS="${scheme}"
} SCHEME="${scheme}"
stage('R7RS tests') { }
steps { scheme.stages.each { stage ->
script { stage("${stage}") {
env.LIBRARIES.split().each { LIBRARY -> catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
stage("${LIBRARY}") { sh "${stage.cmd}"
env.R7RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} RNRS=r7rs test-docker"
}
}
} }
} }
} }

14
buildconfig.yaml Normal file
View File

@ -0,0 +1,14 @@
schemes:
- scheme: chibi
docker-tag: head
init-cmd: |
apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev
git clone https://github.com/ashinn/chibi-scheme.git --depth=1
make -j8 -C chibi-scheme
make -j8 -C chibi-scheme install
snow-chibi install retropikzel.compile-r7rs
stages:
- name: tap
cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap