diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2015-11-02 13:13:18 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2015-11-02 13:13:18 -0800 |
commit | a1b160c1ff4ee1576b82f98990285ccddadd9b61 (patch) | |
tree | b2f602cc5394486822e624b82a9efbc3784b9b9d /tasks.py | |
parent | 3f500d0c1ab4b986f7c329254256dd678afd1f6f (diff) | |
parent | f3649c0d7d9d6d46269c5ad05ef88383cf50180f (diff) |
Merge branch '1.13' into 1.14
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -9,8 +9,14 @@ from invocations.packaging import publish # Until we move to spec-based testing @task -def test(ctx): - ctx.run("python test.py --verbose", pty=True) +def test(ctx, coverage=False, flags=""): + if "--verbose" not in flags.split(): + flags += " --verbose" + runner = "python" + if coverage: + runner = "coverage run --source=paramiko" + ctx.run("{0} test.py {1}".format(runner, flags), pty=True) + @task def coverage(ctx): @@ -25,7 +31,8 @@ def release(ctx): # Move the built docs into where Epydocs used to live target = 'docs' rmtree(target, ignore_errors=True) - copytree(docs_build, target) + # TODO: make it easier to yank out this config val from the docs coll + copytree('sites/docs/_build', target) # Publish publish(ctx) # Remind |