Compare commits

..

7 Commits

Author SHA1 Message Date
retropikzel 59e9e99d92 Fix jenkins tests 2026-06-27 18:42:53 +03:00
retropikzel 3aec487642 Fix jenkins tests 2026-06-27 18:26:56 +03:00
retropikzel 5fc5c98c3c Fix jenkins tests 2026-06-27 18:25:54 +03:00
retropikzel b6d3b42ef8 Fix jenkins tests 2026-06-27 18:24:52 +03:00
retropikzel 6f5ac95440 Fix jenkins tests 2026-06-27 17:49:07 +03:00
retropikzel b5c2c2518d Fix jenkins tests 2026-06-27 14:52:59 +03:00
retropikzel d48809552a Add webhook trigger 2026-06-27 14:51:45 +03:00
3 changed files with 32 additions and 8 deletions

View File

@ -1,2 +1,5 @@
FROM debian:trixie FROM debian:trixie
RUN apt-get update && apt-get -y install make docker.io git RUN apt-get update && apt-get -y install build-essential libffi-dev docker.io git
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
RUN cd chibi-scheme && make && make install
RUN snow-chibi install --impls=chibi --always-yes retropikzel.test-r7rs

27
Jenkinsfile vendored
View File

@ -7,6 +7,25 @@ pipeline {
} }
} }
triggers {
GenericTrigger(
genericVariables: [
[key: 'ref', value: '$.ref']
],
causeString: 'Triggered on $ref',
printContributedVariables: true,
printPostContent: true,
silentResponse: false,
shouldNotFlatten: false,
regexpFilterText: '$ref',
regexpFilterExpression: 'refs/heads/' + BRANCH_NAME
)
}
options { options {
disableConcurrentBuilds() disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
@ -19,14 +38,14 @@ pipeline {
} }
stages { stages {
stage('x86_64 Debian') { stage('R6RS Debian') {
steps { steps {
script { script {
env.SRFIS.split().each { SRFI -> env.SRFIS.split().each { SRFI ->
env.R6RS_SCHEMES.split().each { SCHEME -> env.R6RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME} ${SRFI}") { stage("${SCHEME} ${SRFI}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} SRFI=${SRFI} RNRS=r6rs run-test-docker" sh "make SCHEME=${SCHEME} SRFI=${SRFI} RNRS=r6rs test-docker"
} }
} }
} }
@ -34,14 +53,14 @@ pipeline {
} }
} }
} }
stage('R7RS x86_64 Debian') { stage('R7RS Debian') {
steps { steps {
script { script {
env.SRFIS.split().each { SRFI -> env.SRFIS.split().each { SRFI ->
env.R7RS_SCHEMES.split().each { SCHEME -> env.R7RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME} ${SRFI}") { stage("${SCHEME} ${SRFI}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} SRFI=${SRFI} RNRS=r6rs run-test-docker" sh "make SCHEME=${SCHEME} SRFI=${SRFI} RNRS=r6rs test-docker"
} }
} }
} }

View File

@ -36,7 +36,9 @@ package: srfi/${SRFI}/LICENSE srfi/${SRFI}/VERSION
install: install:
snow-chibi install --impls=${SCHEME} ${PKG} snow-chibi install --impls=${SCHEME} ${PKG}
testfiles: ${PKG}: package
testfiles: ${PKG}
rm -rf .tmp rm -rf .tmp
mkdir -p .tmp mkdir -p .tmp
cp ${PKG} .tmp cp ${PKG} .tmp
@ -50,11 +52,11 @@ testfiles:
fi; \ fi; \
fi fi
test: testfiles package test: testfiles
cd .tmp && COMPILE_R7RS=${SCHEME} compile-r7rs -o test-program test.${SFX} cd .tmp && COMPILE_R7RS=${SCHEME} compile-r7rs -o test-program test.${SFX}
cd .tmp && ./test-program cd .tmp && ./test-program
test-docker: testfiles package test-docker: testfiles
cd .tmp && \ cd .tmp && \
DOCKER_TAG=${DOCKER_TAG} \ DOCKER_TAG=${DOCKER_TAG} \
SNOW_PACKAGES="srfi.64 ${PKG}" \ SNOW_PACKAGES="srfi.64 ${PKG}" \