run checks and build steps in parallel

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-06-07 12:48:54 -04:00 committed by Jakub
parent 9f8ab373f8
commit 49d5a3082e
5 changed files with 145 additions and 105 deletions

View File

@ -52,6 +52,9 @@ pipeline {
} }
} }
} }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') { stage('Lint') {
steps { steps {
script { cmn.nix.shell('lein cljfmt check') } script { cmn.nix.shell('lein cljfmt check') }
@ -62,7 +65,9 @@ pipeline {
script { cmn.nix.shell('lein test-cljs') } script { cmn.nix.shell('lein test-cljs') }
} }
} }
stage('Build') { } }
stage('Build') { stages {
stage('Clojure') {
steps { steps {
script { cmn.nix.shell('make prod-build-android')} script { cmn.nix.shell('make prod-build-android')}
} }
@ -72,6 +77,9 @@ pipeline {
script { apk = android.bundle() } script { apk = android.bundle() }
} }
} }
} }
}
}
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts apk archiveArtifacts apk

View File

@ -51,6 +51,9 @@ pipeline {
} }
} }
} }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') { stage('Lint') {
steps { steps {
script { cmn.nix.shell('lein cljfmt check') } script { cmn.nix.shell('lein cljfmt check') }
@ -61,7 +64,9 @@ pipeline {
script { cmn.nix.shell('lein test-cljs') } script { cmn.nix.shell('lein test-cljs') }
} }
} }
stage('Build') { } }
stage('Build') { stages {
stage('Clojure') {
steps { steps {
script { cmn.nix.shell('make prod-build-ios') } script { cmn.nix.shell('make prod-build-ios') }
} }
@ -71,6 +76,9 @@ pipeline {
script { api = ios.bundle() } script { api = ios.bundle() }
} }
} }
} }
}
}
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts api archiveArtifacts api

View File

@ -53,6 +53,9 @@ pipeline {
} }
} }
} }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') { stage('Lint') {
steps { steps {
script { cmn.nix.shell('lein cljfmt check') } script { cmn.nix.shell('lein cljfmt check') }
@ -63,7 +66,9 @@ pipeline {
script { cmn.nix.shell('lein test-cljs') } script { cmn.nix.shell('lein test-cljs') }
} }
} }
stage('Build') { } }
stage('Build') { stages {
stage('Clojure') {
steps { steps {
script { desktop.buildClojureScript() } script { desktop.buildClojureScript() }
} }
@ -78,6 +83,9 @@ pipeline {
script { app = desktop.bundleLinux(btype) } script { app = desktop.bundleLinux(btype) }
} }
} }
} }
}
}
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts app archiveArtifacts app

View File

@ -49,6 +49,9 @@ pipeline {
} }
} }
} }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') { stage('Lint') {
steps { steps {
script { cmn.nix.shell('lein cljfmt check') } script { cmn.nix.shell('lein cljfmt check') }
@ -59,7 +62,9 @@ pipeline {
script { cmn.nix.shell('lein test-cljs') } script { cmn.nix.shell('lein test-cljs') }
} }
} }
stage('Build') { } }
stage('Build') { stages {
stage('Clojure') {
steps { steps {
script { desktop.buildClojureScript() } script { desktop.buildClojureScript() }
} }
@ -74,6 +79,9 @@ pipeline {
script { dmg = desktop.bundleMacOS(btype) } script { dmg = desktop.bundleMacOS(btype) }
} }
} }
} }
}
}
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts dmg archiveArtifacts dmg

View File

@ -57,6 +57,9 @@ pipeline {
} }
} }
} }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') { stage('Lint') {
steps { steps {
script { cmn.nix.shell('lein cljfmt check') } script { cmn.nix.shell('lein cljfmt check') }
@ -67,7 +70,9 @@ pipeline {
script { cmn.nix.shell('lein test-cljs') } script { cmn.nix.shell('lein test-cljs') }
} }
} }
stage('Build') { } }
stage('Build') { stages {
stage('Clojure') {
steps { steps {
script { desktop.buildClojureScript() } script { desktop.buildClojureScript() }
} }
@ -82,6 +87,9 @@ pipeline {
script { app = desktop.bundleWindows(btype) } script { app = desktop.bundleWindows(btype) }
} }
} }
} }
}
}
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts app archiveArtifacts app