Skip to content

Commit

Permalink
Merge pull request #1958 from anthrotype/tox-skip-missing-interpreters
Browse files Browse the repository at this point in the history
tox: add skip_missing_interpreters=true
  • Loading branch information
anthrotype committed May 15, 2020
2 parents 8d32a24 + 0c3efde commit d3bd813
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
source .venv/bin/activate
fi

tox
tox --skip-missing-interpreters false

# re-run all the XML-related tests, this time without lxml but using the
# built-in ElementTree library.
Expand All @@ -17,4 +17,4 @@ else
# strip additional tox envs after the comma, add -nolxml factor
TOXENV="${TOXENV%,*}-nolxml"
fi
tox -e $TOXENV -- Tests/ufoLib Tests/misc/etree_test.py Tests/misc/plistlib_test.py
tox --skip-missing-interpreters false -e $TOXENV -- Tests/ufoLib Tests/misc/etree_test.py Tests/misc/plistlib_test.py
6 changes: 3 additions & 3 deletions Doc/source/developer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ environments::

.. note::

When you run ``tox`` without arguments, the tests are executed for all the environments listed in the ``tox.ini`` ``envlist``. The current Python interpreters defined for tox testing must be available on your system ``PATH``.
When you run ``tox`` without arguments, the tests are executed for all the environments listed in the ``tox.ini`` ``envlist``. The Python versions that are not available on your system ``PATH`` will be skipped.

You can specify a different testing environment list via the ``-e`` option, or the ``TOXENV`` environment variable::
You can specify a particular testing environment list via the ``-e`` option, or the ``TOXENV`` environment variable::

tox -e py36
TOXENV="py36-cov,htmlcov" tox
Expand Down Expand Up @@ -112,4 +112,4 @@ License
:target: https://pypi.org/project/FontTools
.. |Gitter Chat| image:: https://badges.gitter.im/fonttools-dev/Lobby.svg
:alt: Join the chat at https://gitter.im/fonttools-dev/Lobby
:target: https://gitter.im/fonttools-dev/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
:target: https://gitter.im/fonttools-dev/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
minversion = 3.0
envlist = py3{6,7,8}-cov, htmlcov
skip_missing_interpreters=true

[testenv]
setenv =
Expand Down

0 comments on commit d3bd813

Please sign in to comment.