diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-18 16:42:29 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-18 16:42:29 -0700 |
commit | 0999fda545a859b423ebe188ab4e020333dd6894 (patch) | |
tree | 5bf270daebc25e12cd9baceebdbe99a986acdab8 /tasks.py | |
parent | fb3c81bf423b673526768fe4b506e3d74d295ac5 (diff) | |
parent | 381e86171e28ebfaa64c3dabe0e394448eb03aa3 (diff) |
Merge branch 'master' into 216-int
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -27,12 +27,12 @@ www = Collection.from_module(_docs, name='www', config={ # Until we move to spec-based testing @task -def test(ctx): - ctx.run("python test.py --verbose", pty=True) - -@task -def coverage(ctx): - ctx.run("coverage run --source=paramiko test.py --verbose") +def test(ctx, coverage=False): + runner = "python" + if coverage: + runner = "coverage run --source=paramiko" + flags = "--verbose" + ctx.run("{0} test.py {1}".format(runner, flags), pty=True) # Until we stop bundling docs w/ releases. Need to discover use cases first. @@ -48,4 +48,4 @@ def release(ctx): publish(ctx, wheel=True) -ns = Collection(test, coverage, release, docs=docs, www=www) +ns = Collection(test, release, docs=docs, www=www) |