Pass TRAVIS env var to test environments [skip appveyor]

xdist has an workaround inplace for Travis so "-n auto" works.

Fix #4162
This commit is contained in:
Bruno Oliveira 2018-10-15 20:06:59 -03:00
parent 9087ac4010
commit 12edc4e7b8
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ commands =
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --lsof
coverage: coverage combine
coverage: coverage report
passenv = USER USERNAME COVERAGE_*
passenv = USER USERNAME COVERAGE_* TRAVIS
setenv =
# configuration if a user runs tox with a "coverage" factor, for example "tox -e py36-coverage"
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m