From 9ea22d8c4a41664ffbe2b5f3a572fe18c89df96a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 21 Aug 2021 10:46:34 +0200 Subject: [PATCH] Display commands run with invoke --- tasks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 9c1f67e..bfc8f2a 100644 --- a/tasks.py +++ b/tasks.py @@ -24,7 +24,8 @@ BASE_DIR = Path(__file__).parent.resolve(strict=True) @task def test(context): """Run tests""" - context.run("go test ./...") + context: Context + context.run(f"go test {BASE_DIR}/...", echo=True) @task(pre=[test]) @@ -38,8 +39,8 @@ def release(context, version_name): def tag(context, version_name): """Create & push a git tag""" context: Context - context.run(f"git tag -a {version_name} -m '{version_name}'") - context.run("git push --follow-tags") + context.run(f"git tag -a {version_name} -m '{version_name}'", echo=True) + context.run("git push --follow-tags", echo=True) @task