Improving tests
This commit is contained in:
parent
29d3acae8b
commit
9ec1836bd9
|
|
@ -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
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
dockerfile {
|
||||||
label 'docker-x86_64'
|
label 'docker-x86_64'
|
||||||
image 'debian'
|
filename 'Dockerfile.jenkins'
|
||||||
args '--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock'
|
args '--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -22,52 +22,46 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Init') {
|
|
||||||
steps {
|
|
||||||
sh "apt-get update && apt-get install -y make docker.io git"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Tests') {
|
stage('Tests') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('R6RS x86_64 Debian') {
|
/*
|
||||||
|
stage('R6RS') {
|
||||||
|
steps {
|
||||||
script {
|
script {
|
||||||
params.LIBRARIES.split().each { LIBRARY ->
|
params.LIBRARIES.split().each { LIBRARY ->
|
||||||
stage("${LIBRARY}") {
|
stage("${LIBRARY}") {
|
||||||
stages {
|
params.R6RS_SCHEMES.split().each { SCHEME ->
|
||||||
params.R6RS_SCHEMES.split().each { SCHEME ->
|
def IMG="${SCHEME}:head"
|
||||||
def IMG="${SCHEME}:head"
|
stage("${SCHEME} - ${LIBRARY}") {
|
||||||
stage("${SCHEME} - ${LIBRARY}") {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
steps {
|
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
||||||
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stage('R7RS x86_64 Debian') {
|
*/
|
||||||
|
stage('R7RS') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
params.LIBRARIES.split().each { LIBRARY ->
|
params.LIBRARIES.split().each { LIBRARY ->
|
||||||
stage("${LIBRARY}") {
|
stage("${LIBRARY}") {
|
||||||
stages {
|
params.R7RS_SCHEMES.collectEntries().each { SCHEME ->
|
||||||
params.R7RS_SCHEMES.split().each { SCHEME ->
|
[(SCHEME): {
|
||||||
def IMG="${SCHEME}:head"
|
def IMG="${SCHEME}:head"
|
||||||
if("${SCHEME}" == "chicken") {
|
if("${SCHEME}" == "chicken") {
|
||||||
IMG="${SCHEME}:5"
|
IMG="${SCHEME}:5"
|
||||||
}
|
}
|
||||||
stage("${SCHEME} - ${LIBRARY}") {
|
stage("${SCHEME} - ${LIBRARY}") {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker"
|
sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue