Add coverage command as Invoke task
This commit is contained in:
parent
675e30986e
commit
2d3b13e917
|
@ -7,3 +7,4 @@ test.log
|
||||||
docs/
|
docs/
|
||||||
!sites/docs
|
!sites/docs
|
||||||
_build
|
_build
|
||||||
|
.coverage
|
||||||
|
|
|
@ -10,7 +10,7 @@ install:
|
||||||
- pip install -r dev-requirements.txt
|
- pip install -r dev-requirements.txt
|
||||||
script:
|
script:
|
||||||
# Main tests, with coverage!
|
# Main tests, with coverage!
|
||||||
- coverage run --source=paramiko test.py --verbose
|
- invoke coverage
|
||||||
# Ensure documentation & invoke pipeline run OK.
|
# Ensure documentation & invoke pipeline run OK.
|
||||||
# Run 'docs' first since its objects.inv is referred to by 'www'.
|
# Run 'docs' first since its objects.inv is referred to by 'www'.
|
||||||
# Also force warnings to be errors since most of them tend to be actual
|
# Also force warnings to be errors since most of them tend to be actual
|
||||||
|
|
6
tasks.py
6
tasks.py
|
@ -26,5 +26,9 @@ www = Collection.from_module(_docs, name='www', config={
|
||||||
def test(ctx):
|
def test(ctx):
|
||||||
ctx.run("python test.py --verbose")
|
ctx.run("python test.py --verbose")
|
||||||
|
|
||||||
|
@task
|
||||||
|
def coverage(ctx):
|
||||||
|
ctx.run("coverage run --source=paramiko test.py --verbose")
|
||||||
|
|
||||||
ns = Collection(test, docs=docs, www=www)
|
|
||||||
|
ns = Collection(test, coverage, docs=docs, www=www)
|
||||||
|
|
Loading…
Reference in New Issue