diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-18 16:25:37 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-18 16:25:37 -0700 |
commit | bcbbad83e7bc48d8912b18ec8c175d7a5405d357 (patch) | |
tree | 1ada12e4f9a97accadd8a3950347b8a408f8dc69 /tasks.py | |
parent | 4e66cf36c4c97ce539970553e721d9a81727fbb5 (diff) | |
parent | cbbf7106f8c6e2b0275fc65f17c8c419a2028d8a (diff) |
Merge branch 'master' into 393-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) |