Merge pull request #4762 from blueyed/pluggymaster
tox: use deps for pluggymaster testenvs
This commit is contained in:
commit
386e801a5a
|
@ -17,10 +17,10 @@ env:
|
||||||
# Specialized factors for py27.
|
# Specialized factors for py27.
|
||||||
- TOXENV=py27-nobyte
|
- TOXENV=py27-nobyte
|
||||||
- TOXENV=py27-xdist
|
- TOXENV=py27-xdist
|
||||||
- TOXENV=py27-pluggymaster PYTEST_NO_COVERAGE=1
|
- TOXENV=py27-pluggymaster
|
||||||
# Specialized factors for py37.
|
# Specialized factors for py37.
|
||||||
- TOXENV=py37-pexpect,py37-trial,py37-numpy
|
- TOXENV=py37-pexpect,py37-trial,py37-numpy
|
||||||
- TOXENV=py37-pluggymaster PYTEST_NO_COVERAGE=1
|
- TOXENV=py37-pluggymaster
|
||||||
- TOXENV=py37-freeze PYTEST_NO_COVERAGE=1
|
- TOXENV=py37-freeze PYTEST_NO_COVERAGE=1
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -13,11 +13,9 @@ environment:
|
||||||
# Specialized factors for py27.
|
# Specialized factors for py27.
|
||||||
- TOXENV: "py27-trial,py27-numpy,py27-nobyte"
|
- TOXENV: "py27-trial,py27-numpy,py27-nobyte"
|
||||||
- TOXENV: "py27-pluggymaster"
|
- TOXENV: "py27-pluggymaster"
|
||||||
PYTEST_NO_COVERAGE: "1"
|
|
||||||
# Specialized factors for py37.
|
# Specialized factors for py37.
|
||||||
- TOXENV: "py37-trial,py37-numpy"
|
- TOXENV: "py37-trial,py37-numpy"
|
||||||
- TOXENV: "py37-pluggymaster"
|
- TOXENV: "py37-pluggymaster"
|
||||||
PYTEST_NO_COVERAGE: "1"
|
|
||||||
- TOXENV: "py37-freeze"
|
- TOXENV: "py37-freeze"
|
||||||
PYTEST_NO_COVERAGE: "1"
|
PYTEST_NO_COVERAGE: "1"
|
||||||
|
|
||||||
|
|
25
tox.ini
25
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
isolated_build = True
|
isolated_build = True
|
||||||
minversion = 3.3
|
minversion = 3.5.3
|
||||||
distshare = {homedir}/.tox/distshare
|
distshare = {homedir}/.tox/distshare
|
||||||
# make sure to update environment list in travis.yml and appveyor.yml
|
# make sure to update environment list in travis.yml and appveyor.yml
|
||||||
envlist =
|
envlist =
|
||||||
|
@ -25,7 +25,8 @@ commands =
|
||||||
coverage: coverage report
|
coverage: coverage report
|
||||||
passenv = USER USERNAME COVERAGE_* TRAVIS
|
passenv = USER USERNAME COVERAGE_* TRAVIS
|
||||||
setenv =
|
setenv =
|
||||||
# configuration if a user runs tox with a "coverage" factor, for example "tox -e py37-coverage"
|
# Configuration to run with coverage similar to Travis/Appveyor, e.g.
|
||||||
|
# "tox -e py37-coverage".
|
||||||
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m
|
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m
|
||||||
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
|
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
|
||||||
coverage: COVERAGE_FILE={toxinidir}/.coverage
|
coverage: COVERAGE_FILE={toxinidir}/.coverage
|
||||||
|
@ -52,8 +53,8 @@ commands = pre-commit run --all-files --show-diff-on-failure
|
||||||
[testenv:py27-xdist]
|
[testenv:py27-xdist]
|
||||||
extras = testing
|
extras = testing
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
pytest-xdist>=1.13
|
pytest-xdist>=1.13
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
commands =
|
commands =
|
||||||
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto {posargs}
|
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto {posargs}
|
||||||
|
|
||||||
|
@ -61,15 +62,15 @@ commands =
|
||||||
# NOTE: copied from above due to https://github.com/tox-dev/tox/issues/706.
|
# NOTE: copied from above due to https://github.com/tox-dev/tox/issues/706.
|
||||||
extras = testing
|
extras = testing
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
pytest-xdist>=1.13
|
pytest-xdist>=1.13
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
commands = {[testenv:py27-xdist]commands}
|
commands = {[testenv:py27-xdist]commands}
|
||||||
|
|
||||||
[testenv:py27-pexpect]
|
[testenv:py27-pexpect]
|
||||||
platform = linux|darwin
|
platform = linux|darwin
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
pexpect
|
pexpect
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
commands =
|
commands =
|
||||||
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py}
|
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py}
|
||||||
|
|
||||||
|
@ -81,8 +82,8 @@ commands = {[testenv:py27-pexpect]commands}
|
||||||
[testenv:py27-nobyte]
|
[testenv:py27-nobyte]
|
||||||
extras = testing
|
extras = testing
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
pytest-xdist>=1.13
|
pytest-xdist>=1.13
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
distribute = true
|
distribute = true
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
|
@ -92,8 +93,8 @@ commands =
|
||||||
|
|
||||||
[testenv:py27-trial]
|
[testenv:py27-trial]
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
twisted
|
twisted
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
commands =
|
commands =
|
||||||
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
|
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
|
||||||
|
|
||||||
|
@ -103,8 +104,8 @@ commands = {[testenv:py27-trial]commands}
|
||||||
|
|
||||||
[testenv:py27-numpy]
|
[testenv:py27-numpy]
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
numpy
|
numpy
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
commands=
|
commands=
|
||||||
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
|
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
|
||||||
|
|
||||||
|
@ -116,11 +117,13 @@ commands = {[testenv:py27-numpy]commands}
|
||||||
setenv=
|
setenv=
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
_PYTEST_SETUP_SKIP_PLUGGY_DEP=1
|
_PYTEST_SETUP_SKIP_PLUGGY_DEP=1
|
||||||
# NOTE: using env instead of "{[testenv]deps}", because of https://github.com/tox-dev/tox/issues/706.
|
deps =
|
||||||
_PYTEST_TOX_EXTRA_DEP=git+https://github.com/pytest-dev/pluggy.git@master
|
{[testenv]deps}
|
||||||
|
git+https://github.com/pytest-dev/pluggy.git@master
|
||||||
|
|
||||||
[testenv:py37-pluggymaster]
|
[testenv:py37-pluggymaster]
|
||||||
setenv = {[testenv:py27-pluggymaster]setenv}
|
setenv = {[testenv:py27-pluggymaster]setenv}
|
||||||
|
deps = {[testenv:py27-pluggymaster]deps}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
@ -136,8 +139,8 @@ commands =
|
||||||
basepython = python3
|
basepython = python3
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
PyYAML
|
PyYAML
|
||||||
{env:_PYTEST_TOX_EXTRA_DEP:}
|
|
||||||
commands =
|
commands =
|
||||||
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
|
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
|
||||||
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
|
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
|
||||||
|
|
Loading…
Reference in New Issue