Remaking the Jenkinsfile
This commit is contained in:
parent
eedaede577
commit
2fd42cd310
|
|
@ -1,10 +1,5 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent any
|
||||||
dockerfile {
|
|
||||||
filename 'dockerfiles/jenkins'
|
|
||||||
args '--user=root'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
options {
|
options {
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
|
|
@ -13,16 +8,26 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Chibi primitives') {
|
stage('Chibi primitives') {
|
||||||
|
environment {
|
||||||
|
COMPILE_R7RS = "chibi"
|
||||||
|
TESTNAME = "primitives"
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh 'make test-compile-r7rs-docker COMPILE_R7RS=chibi TESTNAME=primitives'
|
sh 'docker build --build-arg COMPILE_R7RS=${COMPILE_R7RS} --tag=r7rs-pffi-test-${COMPILE_R7RS} -f dockerfiles/test .'
|
||||||
|
sh 'docker run -v "${PWD}":/workdir -w /workdir -t r7rs-pffi-test-${COMPILE_R7RS} sh -c "make COMPILE_R7RS=${COMPILE_R7RS} test-compile-r7rs"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Chibi addressof') {
|
stage('Chibi addressof') {
|
||||||
|
environment {
|
||||||
|
COMPILE_R7RS = "chibi"
|
||||||
|
TESTNAME = "addressof"
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh 'make test-compile-r7rs-docker COMPILE_R7RS=chibi TESTNAME=addressof'
|
sh 'docker build --build-arg COMPILE_R7RS=${COMPILE_R7RS} --tag=r7rs-pffi-test-${COMPILE_R7RS} -f dockerfiles/test .'
|
||||||
|
sh 'docker run -v "${PWD}":/workdir -w /workdir -t r7rs-pffi-test-${COMPILE_R7RS} sh -c "make COMPILE_R7RS=${COMPILE_R7RS} test-compile-r7rs"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue