Bring things to new compile-r7rs
This commit is contained in:
parent
45989958ba
commit
ef75b4c4f7
|
|
@ -14,12 +14,16 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
//def implementations = sh(script: 'docker run retropikzel1/compile-r7rs:chibi sh -c "compile-r7rs --list-r7rs-schemes"', returnStdout: true).split()
|
//def implementations = sh(script: 'docker run retropikzel1/compile-r7rs:chibi sh -c "compile-r7rs --list-r7rs-schemes"', returnStdout: true).split()
|
||||||
def implementations = "chibi chicken gauche guile kawa mosh racket sagittarius stklos ypsilon".split()
|
def implementations = "chibi chicken gauche guile kawa mosh racket sagittarius stklos ypsilon".split()
|
||||||
def DOCKERIMG = sh(script: 'make docker-image', returnStdout: true)
|
|
||||||
|
|
||||||
parallel implementations.collectEntries { implementation->
|
parallel implementations.collectEntries { implementation->
|
||||||
[(implementation): {
|
[(implementation): {
|
||||||
stage("${implementation} install") {
|
stage("${implementation} install") {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
|
if("${SCHEME}" == "chicken") {
|
||||||
|
DOCKERIMG="${SCHEME}:5"
|
||||||
|
} else {
|
||||||
|
DOCKERIMG="${SCHEME}:head"
|
||||||
|
}
|
||||||
sh "docker build --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${implementation} --tag=foreign-c-test-${implementation} -f dockerfiles/Dockerfile.snow-chibi-install-test ."
|
sh "docker build --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${implementation} --tag=foreign-c-test-${implementation} -f dockerfiles/Dockerfile.snow-chibi-install-test ."
|
||||||
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make clean all install-jenkins SCHEME=${implementation} && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} timeout 120 compile-r7rs -o hello hello.scm && timeout 120 ./hello\""
|
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make clean all install-jenkins SCHEME=${implementation} && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} timeout 120 compile-r7rs -o hello hello.scm && timeout 120 ./hello\""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue