Display commands run with invoke
This commit is contained in:
parent
ccce40a90d
commit
9ea22d8c4a
1 changed files with 4 additions and 3 deletions
7
tasks.py
7
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
|
||||
|
|
Loading…
Reference in a new issue