Add build step to the build configurationmake a zipped distributable version.
* Rename previous build step to `compile`
This commit is contained in:
parent
6556a86209
commit
dcf82d8999
@ -1,21 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "strawboss",
|
"name": "strawboss",
|
||||||
"steps": {
|
"steps": {
|
||||||
"build": {
|
"compile": {
|
||||||
"artifacts": ["strawboss"],
|
"artifacts": ["strawboss"],
|
||||||
"stepCmd": "nimble build"
|
"stepCmd": "nimble build"
|
||||||
},
|
},
|
||||||
"test": { "depends": ["unittest", "functest"] },
|
"unittest": {
|
||||||
|
"depends": ["compile"],
|
||||||
|
"cmdInput": [
|
||||||
|
"cp $build_DIR/strawboss .",
|
||||||
|
"nim c -r src/test/nim/run_unit_tests"
|
||||||
|
]
|
||||||
|
},
|
||||||
"functest": {
|
"functest": {
|
||||||
|
"depends": ["compile"],
|
||||||
"cmdInput": [
|
"cmdInput": [
|
||||||
"cp $build_DIR/strawboss .",
|
"cp $build_DIR/strawboss .",
|
||||||
"nim c -r src/test/nim/run_functional_tests"
|
"nim c -r src/test/nim/run_functional_tests"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unittest": {
|
"build": {
|
||||||
|
"artifacts": ["strawboss-$VERSION.zip"],
|
||||||
|
"depends": ["compile", "unittest", "functest"],
|
||||||
"cmdInput": [
|
"cmdInput": [
|
||||||
"cp $build_DIR/strawboss .",
|
"zip strawboss-$VERSION.zip $compile_DIR/strawboss \",
|
||||||
"nim c -r src/test/nim/run_unit_tests"
|
" strawboss.config.json example.json \ ",
|
||||||
|
" src/main/systemd/strawboss.service"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user