diff options
-rwxr-xr-x | tools/pretty_tox.sh | 6 | ||||
-rw-r--r-- | tox.ini | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh new file mode 100755 index 0000000..ff554c5 --- /dev/null +++ b/tools/pretty_tox.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -o pipefail + +TESTRARGS=$1 +python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f @@ -6,11 +6,12 @@ skipsdist = True [testenv] usedevelop = True install_command = pip install -U {opts} {packages} +whitelist_externals = bash setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' +commands = bash tools/pretty_tox.sh {posargs} [testenv:pep8] commands = flake8 |