releases/tasks.py

20 lines
468 B
Python
Raw Normal View History

2013-11-06 17:24:47 -08:00
from invocations import docs
from invocations.testing import test
from invocations.packaging import release
from invoke import Collection
2014-04-14 17:52:24 -04:00
from invoke import run
from invoke import task
2013-11-06 17:24:47 -08:00
2014-04-14 17:52:24 -04:00
@task(help={
'pty': "Whether to run tests under a pseudo-tty",
})
def integration(pty=True):
2014-04-14 17:52:24 -04:00
"""Runs integration tests."""
cmd = 'inv test -o --tests=integration'
run(cmd + ('' if pty else ' --no-pty'), pty=pty)
2014-04-14 17:52:24 -04:00
ns = Collection(test, integration, release, docs)