Run CLJS unit tests when building desktop

Signed-off-by: George Lipov <gnl@lipov.net>
This commit is contained in:
George Lipov 2018-09-25 20:01:48 +03:00
parent 17a8d3a9c9
commit e1c0dff406
No known key found for this signature in database
GPG Key ID: 335432A084BC0C3A
6 changed files with 48 additions and 28 deletions

View File

@ -36,12 +36,12 @@ pipeline {
}
stage('Lint') {
steps {
script { mobile.runLint() }
script { cmn.runLint() }
}
}
stage('Tests') {
steps {
script { mobile.runTests() }
script { cmn.runTests() }
}
}
stage('Build') {

View File

@ -32,12 +32,12 @@ pipeline {
}
stage('Lint') {
steps {
script { mobile.runLint() }
script { cmn.runLint() }
}
}
stage('Tests') {
steps {
script { mobile.runTests() }
script { cmn.runTests() }
}
}
stage('Build') {

View File

@ -48,6 +48,16 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.runLint() }
}
}
stage('Tests') {
steps {
script { cmn.runTests() }
}
}
stage('Build') {
steps {
script { desktop.buildClojureScript() }

View File

@ -28,6 +28,16 @@ pipeline {
}
}
}
stage('Lint') {
steps {
script { cmn.runLint() }
}
}
stage('Tests') {
steps {
script { cmn.runTests() }
}
}
stage('Build') {
steps {
script { desktop.buildClojureScript() }

View File

@ -160,4 +160,12 @@ def getParentRunEnv(name) {
return c.getUpstreamRun().getEnvironment()[name]
}
def runLint() {
sh 'lein cljfmt check'
}
def runTests() {
sh 'lein test-cljs'
}
return this

View File

@ -59,14 +59,6 @@ def prep(type = 'nightly') {
}
}
def runLint() {
sh 'lein cljfmt check'
}
def runTests() {
sh 'lein test-cljs'
}
def leinBuild(platform) {
sh "lein prod-build-${platform}"
}