Skip to content

Commit

Permalink
Build in capture=no for integration task
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jul 19, 2019
1 parent e9939d6 commit 502ce7b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -59,7 +59,7 @@ script:
# NOTE: this also runs as the sudo-capable user, even if it's not necessarily
# doing any sudo'ing itself - the sudo-capable user is also the ssh-able
# user...
- inv travis.sudo-run "inv integration --capture=no"
- inv travis.sudo-run "inv integration"
# Websites build OK? (Not on PyPy3, Sphinx is all "who the hell are you?" =/
- "if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then inv sites www.doctest docs.doctest; fi"
# Did we break setup.py?
Expand Down
21 changes: 20 additions & 1 deletion tasks.py
Expand Up @@ -4,7 +4,7 @@
from invocations import travis
from invocations.checks import blacken
from invocations.docs import docs, www, sites, watch_docs
from invocations.pytest import test, integration, coverage
from invocations.pytest import test, integration as integration_, coverage
from invocations.packaging import release
from invocations.util import tmpdir

Expand Down Expand Up @@ -57,6 +57,25 @@ def publish(
release.upload(c, directory, index, sign, dry_run)


# TODO: as usual, this just wants a good pattern for "that other task, with a
# tweaked default arg value"
@task
def integration(
c,
opts=None,
pty=True,
x=False,
k=None,
verbose=True,
color=True,
capture="no",
module=None,
):
return integration_(
c, opts, pty, x, k, verbose, color, capture, module,
)


# Better than nothing, since we haven't solved "pretend I have some other
# task's signature" yet...
publish.__doc__ = release.publish.__doc__
Expand Down

0 comments on commit 502ce7b

Please sign in to comment.