[tox] only test on py27 and py36 when running 'tox' without arguments

When running tox locally during development, there's no need to also test python 3.5.
2.7 and 3.6 are enough, and the CI takes care of the others (3.4, 3.5, pypy, etc.).
This commit is contained in:
Cosimo Lupo 2017-04-10 11:42:09 +01:00
parent 40a61de570
commit 41d5db5bbc
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419
2 changed files with 4 additions and 5 deletions

View File

@ -276,9 +276,8 @@ environments.
Note that when you run ``tox`` without arguments, the tests are executed Note that when you run ``tox`` without arguments, the tests are executed
for all the environments listed in tox.ini's ``envlist``. In our case, for all the environments listed in tox.ini's ``envlist``. In our case,
this includes Python 2.7, 3.5 and 3.6, so for this to work the this includes Python 2.7 and 3.6, so for this to work the ``python2.7``
``python2.7``, ``python3.5`` and ``python3.6`` executables must be and ``python3.6`` executables must be available in your ``PATH``.
available in your ``PATH``.
You can specify an alternative environment list via the ``-e`` option, You can specify an alternative environment list via the ``-e`` option,
or the ``TOXENV`` environment variable: or the ``TOXENV`` environment variable:
@ -286,7 +285,7 @@ or the ``TOXENV`` environment variable:
.. code:: sh .. code:: sh
tox -e py27-nocov tox -e py27-nocov
TOXENV="py{27,36}-cov" tox TOXENV="py36-cov,htmlcov" tox
Development Community Development Community
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py{27,35,36}-cov, htmlcov envlist = py{27,36}-cov, htmlcov
[testenv] [testenv]
basepython = basepython =