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
|
@task
|
||||||
def test(context):
|
def test(context):
|
||||||
"""Run tests"""
|
"""Run tests"""
|
||||||
context.run("go test ./...")
|
context: Context
|
||||||
|
context.run(f"go test {BASE_DIR}/...", echo=True)
|
||||||
|
|
||||||
|
|
||||||
@task(pre=[test])
|
@task(pre=[test])
|
||||||
|
@ -38,8 +39,8 @@ def release(context, version_name):
|
||||||
def tag(context, version_name):
|
def tag(context, version_name):
|
||||||
"""Create & push a git tag"""
|
"""Create & push a git tag"""
|
||||||
context: Context
|
context: Context
|
||||||
context.run(f"git tag -a {version_name} -m '{version_name}'")
|
context.run(f"git tag -a {version_name} -m '{version_name}'", echo=True)
|
||||||
context.run("git push --follow-tags")
|
context.run("git push --follow-tags", echo=True)
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
|
Loading…
Reference in a new issue