tox: remove unnecessary 'nocov' factor

tox now allows to use exclamation mark to negate an environment factor.
This commit is contained in:
Cosimo Lupo 2018-10-18 15:39:18 +01:00
parent b1093c8ac1
commit 88b6688fbd
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482
4 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ matrix:
dist: xenial dist: xenial
- python: pypy2.7-5.8.0 - python: pypy2.7-5.8.0
# disable coverage.py on pypy because of performance problems # disable coverage.py on pypy because of performance problems
env: TOXENV=pypy-nocov env: TOXENV=pypy
- language: generic - language: generic
os: osx os: osx
env: TOXENV=py27-cov env: TOXENV=py27-cov
@ -37,7 +37,7 @@ matrix:
- TOXENV=py3-cov - TOXENV=py3-cov
- HOMEBREW_NO_AUTO_UPDATE=1 - HOMEBREW_NO_AUTO_UPDATE=1
- env: - env:
- TOXENV=py27-nocov - TOXENV=py27
- PYENV_VERSION='2.7.6' - PYENV_VERSION='2.7.6'
- PYENV_VERSION_STRING='Python 2.7.6' - PYENV_VERSION_STRING='Python 2.7.6'
- PYENV_ROOT=$HOME/.travis-pyenv - PYENV_ROOT=$HOME/.travis-pyenv

View File

@ -279,7 +279,7 @@ or the ``TOXENV`` environment variable:
.. code:: sh .. code:: sh
tox -e py27-nocov tox -e py27
TOXENV="py36-cov,htmlcov" tox TOXENV="py36-cov,htmlcov" tox
Development Community Development Community

View File

@ -5,13 +5,13 @@ set -e
# Choose python version # Choose python version
if test "x$1" = x-3; then if test "x$1" = x-3; then
PYTHON=py3-nocov PYTHON=py3
shift shift
elif test "x$1" = x-2; then elif test "x$1" = x-2; then
PYTHON=py2-nocov PYTHON=py2
shift shift
fi fi
test "x$PYTHON" = x && PYTHON=py-nocov test "x$PYTHON" = x && PYTHON=py
# Find tests # Find tests
FILTERS= FILTERS=

View File

@ -16,7 +16,7 @@ extras =
commands = commands =
# test with or without coverage, passing extra positonal args to pytest # test with or without coverage, passing extra positonal args to pytest
cov: coverage run --parallel-mode -m pytest {posargs} cov: coverage run --parallel-mode -m pytest {posargs}
nocov: pytest {posargs} !cov: pytest {posargs}
[testenv:htmlcov] [testenv:htmlcov]
deps = deps =