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,24 +52,32 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
stage('Build') {
steps {
script { cmn.nix.shell('make prod-build-android')}
}
}
stage('Bundle') {
steps {
script { apk = android.bundle() }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
} }
stage('Build') { stages {
stage('Clojure') {
steps {
script { cmn.nix.shell('make prod-build-android')}
}
}
stage('Bundle') {
steps {
script { apk = android.bundle() }
}
}
} }
}
}
stage('Archive') {

View File

@ -51,24 +51,32 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
stage('Build') {
steps {
script { cmn.nix.shell('make prod-build-ios') }
}
}
stage('Bundle') {
steps {
script { api = ios.bundle() }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
} }
stage('Build') { stages {
stage('Clojure') {
steps {
script { cmn.nix.shell('make prod-build-ios') }
}
}
stage('Bundle') {
steps {
script { api = ios.bundle() }
}
}
} }
}
}
stage('Archive') {

View File

@ -53,29 +53,37 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
stage('Build') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
script { app = desktop.bundleLinux(btype) }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
} }
stage('Build') { stages {
stage('Clojure') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
script { app = desktop.bundleLinux(btype) }
}
}
} }
}
}
stage('Archive') {

View File

@ -49,29 +49,37 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
stage('Build') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
script { dmg = desktop.bundleMacOS(btype) }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
} }
stage('Build') { stages {
stage('Clojure') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
script { dmg = desktop.bundleMacOS(btype) }
}
}
} }
}
}
stage('Archive') {

View File

@ -57,29 +57,37 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
stage('Build') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
script { app = desktop.bundleWindows(btype) }
stage('Parallel') {
parallel {
stage('Checks') { stages {
stage('Lint') {
steps {
script { cmn.nix.shell('lein cljfmt check') }
}
}
stage('Tests') {
steps {
script { cmn.nix.shell('lein test-cljs') }
}
}
} }
stage('Build') { stages {
stage('Clojure') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
script { app = desktop.bundleWindows(btype) }
}
}
} }
}
}
stage('Archive') {