Added testing to pipeline.
This commit is contained in:
parent
8ee18bbf8d
commit
568aa575e3
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -8,6 +8,13 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ("test") {
|
||||
steps {
|
||||
nodejs("System") {
|
||||
sh "npm run test"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ("build") {
|
||||
steps {
|
||||
nodejs("System") {
|
||||
|
@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"test": "echo \"Error: no test specified\" && exit 0",
|
||||
"serve": "webpack serve --config webpack.dev.js",
|
||||
"build": "webpack --config webpack.prod.js"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user