From dcf82d899968d5264582285fb82249f030639788 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Thu, 23 Nov 2017 07:58:42 -0600 Subject: [PATCH] Add build step to the build configurationmake a zipped distributable version. * Rename previous build step to `compile` --- strawboss.projectdef.json | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/strawboss.projectdef.json b/strawboss.projectdef.json index 4048ca7..f2c2d9e 100644 --- a/strawboss.projectdef.json +++ b/strawboss.projectdef.json @@ -1,21 +1,31 @@ { "name": "strawboss", "steps": { - "build": { + "compile": { "artifacts": ["strawboss"], "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": { + "depends": ["compile"], "cmdInput": [ "cp $build_DIR/strawboss .", "nim c -r src/test/nim/run_functional_tests" ] }, - "unittest": { + "build": { + "artifacts": ["strawboss-$VERSION.zip"], + "depends": ["compile", "unittest", "functest"], "cmdInput": [ - "cp $build_DIR/strawboss .", - "nim c -r src/test/nim/run_unit_tests" + "zip strawboss-$VERSION.zip $compile_DIR/strawboss \", + " strawboss.config.json example.json \ ", + " src/main/systemd/strawboss.service" ] } }