1
0
Fork 0

Compare commits

..

No commits in common. "813d7caf76580f9fa2cdd0d8196821bc43bbed5d" and "00351e0c4bfa5fc3cfa75e1bdf50130d7005473a" have entirely different histories.

3 changed files with 29 additions and 27 deletions

View File

@ -1,6 +1,5 @@
FROM debian:trixie
RUN apt-get update && apt-get install -y \
gcc make git libffi-dev docker.io
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y gcc make git libffi-dev docker.io
WORKDIR /cache
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
WORKDIR /cache/chibi-scheme

9
Jenkinsfile vendored
View File

@ -20,18 +20,18 @@ pipeline {
stages {
stage('Build and install') {
when { not { branch 'release' } }
steps {
sh "make build-chibi"
sh "make install"
}
}
stage('Test') {
parallel {
stage('R6RS') {
when { not { branch 'release' } }
steps {
script {
R6RS_SCHEMES.split().each { SCHEME ->
R7RS_SCHEMES.split().each { SCHEME ->
stage("${SCHEME} R6RS") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make SCHEME=${SCHEME} test-r6rs-docker"
@ -43,7 +43,6 @@ pipeline {
}
stage('R7RS') {
when { not { branch 'release' } }
steps {
script {
R7RS_SCHEMES.split().each { SCHEME ->
@ -56,6 +55,8 @@ pipeline {
}
}
}
}
}
stage('.deb package') {
steps {

View File

@ -102,6 +102,7 @@ test-r6rs:
mkdir -p ${R6RSTMP}
cp -r r6rs-testfiles/* ${R6RSTMP}/
cd ${R6RSTMP} && COMPILE_R7RS=${SCHEME} compile-scheme -I ./libs -o main --debug main.sps
cd ${R6RSTMP} && file main
cd ${R6RSTMP} && ./main 1 2 3 > test-result.txt
@grep "Test successfull (\"1\" \"2\" \"3\")" ${R6RSTMP}/test-result.txt || (echo "Test failed, output: " && cat ${R6RSTMP}/test-result.txt && exit 1)
@ -114,6 +115,7 @@ test-r7rs:
mkdir -p ${R7RSTMP}
cp -r r7rs-testfiles/* ${R7RSTMP}/
cd ${R7RSTMP} && COMPILE_R7RS=${SCHEME} compile-scheme -I ./libs -o main --debug main.scm
cd ${R7RSTMP} && file main
-cd ${R7RSTMP} && ./main 1 2 3 > test-result.txt 2>&1
@grep "Test successfull (\"1\" \"2\" \"3\")" ${R7RSTMP}/test-result.txt || (echo "Test failed, output: " && cat ${R7RSTMP}/test-result.txt && exit 1)