diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-09-18 16:28:06 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-09-18 16:28:06 -0700 |
commit | 6ee3f1a074d2b13cca2a5d267f16159f294b98c6 (patch) | |
tree | 10cfb20e523ea9a337ccc61a3389b95572fe3bca /tasks.py | |
parent | ca63b94a3a4461df5aabc38ec5ce35a43a48afac (diff) | |
parent | 381e86171e28ebfaa64c3dabe0e394448eb03aa3 (diff) |
Merge branch 'master' into switch-to-cryptography
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) |