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") {
|
stage ("build") {
|
||||||
steps {
|
steps {
|
||||||
nodejs("System") {
|
nodejs("System") {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 0",
|
||||||
"serve": "webpack serve --config webpack.dev.js",
|
"serve": "webpack serve --config webpack.dev.js",
|
||||||
"build": "webpack --config webpack.prod.js"
|
"build": "webpack --config webpack.prod.js"
|
||||||
},
|
},
|
||||||
@ -51,4 +51,4 @@
|
|||||||
"vue": "^3.2.26",
|
"vue": "^3.2.26",
|
||||||
"vue-router": "^4.0.12"
|
"vue-router": "^4.0.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user