| 1 |
from invoke import task, Collection |
| 2 |
|
| 3 |
from . import build, deploy, provision |
| 4 |
|
| 5 |
|
| 6 |
@task(aliases=["ipython"]) |
| 7 |
def shell(c): |
| 8 |
"Load a REPL with project state already set up." |
| 9 |
pass |
| 10 |
|
| 11 |
|
| 12 |
@task(aliases=["run_tests"], default=True) |
| 13 |
def test(c): |
| 14 |
"Run the test suite with baked-in args." |
| 15 |
pass |
| 16 |
|
| 17 |
|
| 18 |
# NOTE: using build's internal collection directly as a way of ensuring a |
| 19 |
# corner case (collection 'named' via local kwarg) gets tested for --list. |
| 20 |
# NOTE: Docstring cloning in effect to preserve the final organic looking |
| 21 |
# result... |
| 22 |
localbuild = build.ns |
| 23 |
localbuild.__doc__ = build.__doc__ |
| 24 |
ns = Collection(shell, test, deploy, provision, build=localbuild) |