New builds
This commit is contained in:
parent
b8921f60f0
commit
2f1f7e9b59
|
|
@ -21,25 +21,20 @@ pipeline {
|
|||
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
script {
|
||||
def config = readYaml file: 'buildconfig.yaml'
|
||||
config.schemes.each { scheme ->
|
||||
stage("${scheme.name}") {
|
||||
def builds = readYaml file: 'buildconfig.yaml'
|
||||
builds.each { build ->
|
||||
stage("${build.name}") {
|
||||
agent {
|
||||
docker {
|
||||
image "schemers/${scheme}:${scheme.docker-tag}"
|
||||
image "build.image"
|
||||
}
|
||||
}
|
||||
environment {
|
||||
COMPILE_R7RS="${scheme.scheme}"
|
||||
SCHEME="${scheme.scheme}"
|
||||
}
|
||||
scheme.stages.each { stage ->
|
||||
stage("${stage}") {
|
||||
build.stages.each { stage ->
|
||||
stage("${stage.name}") {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh "${stage.cmd}"
|
||||
}
|
||||
|
|
@ -51,6 +46,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
cleanWs()
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
schemes:
|
||||
builds:
|
||||
- name: Chibi
|
||||
scheme: chibi
|
||||
docker-tag: head
|
||||
init-cmd: |
|
||||
image: schemers/chibi:head
|
||||
stages:
|
||||
- name: Init
|
||||
cmd: |
|
||||
apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev
|
||||
git clone https://github.com/ashinn/chibi-scheme.git --depth=1
|
||||
make -j8 -C chibi-scheme
|
||||
make -j8 -C chibi-scheme install
|
||||
snow-chibi install retropikzel.compile-r7rs
|
||||
stages:
|
||||
- name: tap
|
||||
cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue