Skip to content

Commit

Permalink
Add coverage command as Invoke task
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Feb 11, 2014
1 parent 675e309 commit 2d3b13e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ test.log
docs/
!sites/docs
_build
.coverage
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ install:
- pip install -r dev-requirements.txt
script:
# Main tests, with coverage!
- coverage run --source=paramiko test.py --verbose
- invoke coverage
# Ensure documentation & invoke pipeline run OK.
# 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
Expand Down
6 changes: 5 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
def test(ctx):
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)

0 comments on commit 2d3b13e

Please sign in to comment.