diff options
author | Seth M Morton <seth.m.morton@gmail.com> | 2018-05-14 20:25:43 -0700 |
---|---|---|
committer | Seth M Morton <seth.m.morton@gmail.com> | 2018-05-14 20:25:43 -0700 |
commit | b886ebd4cf1b1ce6b5057b85fb171bd9267237dd (patch) | |
tree | c85310947071a2b36ffc6dc224b62f4201d8116c /tox.ini | |
parent | c35d056aed570811a67bdcd2596e3ff93c879256 (diff) | |
download | natsort-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.ini | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -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] |