summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSeth M Morton <seth.m.morton@gmail.com>2018-05-14 20:25:43 -0700
committerSeth M Morton <seth.m.morton@gmail.com>2018-05-14 20:25:43 -0700
commitb886ebd4cf1b1ce6b5057b85fb171bd9267237dd (patch)
treec85310947071a2b36ffc6dc224b62f4201d8116c /tox.ini
parentc35d056aed570811a67bdcd2596e3ff93c879256 (diff)
downloadnatsort-b886ebd4cf1b1ce6b5057b85fb171bd9267237dd.tar.gz
Simplify tox.ini.
The command duplication has been reduce significantly. Code coverage now only happens in Travis.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini18
1 files changed, 6 insertions, 12 deletions
diff --git a/tox.ini b/tox.ini
index 8de3055..e481ab2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,19 +19,13 @@ extras =
{env:WITH_EXTRAS:}
commands =
pipenv install --dev --skip-lock
- pytest --doctest-modules {envsitepackagesdir}/natsort
- pytest README.rst docs/source/intro.rst docs/source/examples.rst docs/source/howitworks.rst
- pytest --flakes --pep8 --tb=short --cov {envsitepackagesdir}/natsort --cov-report term-missing
-
-[testenv:py27]
-commands =
- pipenv install --dev --skip-lock
- pytest --doctest-modules {envsitepackagesdir}/natsort
+ # Only run How It Works doctest on Python 3.6.
+ py36: {envpython} -m doctest -o IGNORE_EXCEPTION_DETAIL docs/source/howitworks.rst
+ # Other doctests are run for all pythons.
pytest README.rst docs/source/intro.rst docs/source/examples.rst
- pytest --flakes --pep8 --tb=short --cov {envsitepackagesdir}/natsort --cov-report term-missing
-
-[testenv:pypy]
-commands = {[testenv:py27]commands}
+ pytest --doctest-modules {envsitepackagesdir}/natsort
+ # Full test suite. Allow the user to pass command-line objects.
+ pytest --flakes --pep8 --tb=short {posargs:}
# Build documentation.
[testenv:docs]