|
1 | 1 | [tox]
|
2 | 2 | distshare={homedir}/.tox/distshare
|
3 |
| -#envlist=linters,py27,py27-xdist,py27-pytest-latest,py34 |
4 |
| -envlist=linters,py27,py27-pytest-minimal,py27-pytest-latest,py34 |
| 3 | +envlist=py27-pytestlatest-linters,py27-pytest{29,30,31,32,33,34,35,36,37,38,39,latest},py{34,35,36,37}-pytestlatest,py27-pytestlatest-xdist |
5 | 4 | skip_missing_interpreters = true
|
6 | 5 |
|
7 | 6 | [testenv]
|
8 |
| -commands= py.test tests --junitxml={envlogdir}/junit-{envname}.xml |
9 |
| -deps = -r{toxinidir}/requirements-testing.txt |
| 7 | +deps = |
| 8 | + pytestlatest: pytest |
| 9 | + pytest39: pytest~=3.9.0 |
| 10 | + pytest38: pytest~=3.8.0 |
| 11 | + pytest37: pytest~=3.7.0 |
| 12 | + pytest36: pytest~=3.6.0 |
| 13 | + pytest35: pytest~=3.5.0 |
| 14 | + pytest34: pytest~=3.4.0 |
| 15 | + pytest33: pytest~=3.3.0 |
| 16 | + pytest32: pytest~=3.2.0 |
| 17 | + pytest31: pytest~=3.1.0 |
| 18 | + pytest30: pytest~=3.0.0 |
| 19 | + pytest29: pytest~=2.9.0 |
| 20 | + pytest30,pytest29: pytest-warnings |
| 21 | + -r{toxinidir}/requirements-testing.txt |
| 22 | +commands = py.test tests --junitxml={envlogdir}/junit-{envname}.xml |
10 | 23 |
|
11 |
| -[testenv:linters] |
12 |
| -interpreter=python2.7 |
| 24 | +[testenv:py27-pytestlatest-linters] |
13 | 25 | commands={[testenv]commands} pytest_bdd --pep8 -m pep8
|
14 | 26 |
|
15 |
| -[testenv:py27-xdist] |
16 |
| -basepython=python2.7 |
17 |
| -commands= |
18 |
| - py.test pytest_bdd tests -n3 --pep8 -rfsxX \ |
19 |
| - --junitxml={envlogdir}/junit-{envname}.xml |
20 |
| - |
21 |
| -[testenv:py27-pytest-latest] |
22 |
| -basepython=python2.7 |
| 27 | +[testenv:py27-pytestlatest-xdist] |
23 | 28 | deps =
|
| 29 | + pytest-xdist |
24 | 30 | {[testenv]deps}
|
25 |
| - git+https://github.com/pytest-dev/py#egg=py |
26 |
| - git+https://github.com/pytest-dev/pytest.git@features#egg=pytest |
27 |
| - |
28 |
| -[testenv:py27-pytest-minimal] |
29 |
| -basepython=python2.7 |
30 |
| -deps = |
31 |
| - pytest==2.9.0 |
32 |
| - pytest-xdist==1.17 |
33 |
| - mock |
| 31 | +commands={[testenv]commands} -n3 -rfsxX |
34 | 32 |
|
35 |
| -[testenv:coveralls] |
| 33 | +[testenv:py27-pytestlatest-coveralls] |
36 | 34 | passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
37 |
| -usedevelop=True |
38 |
| -changedir=. |
| 35 | +usedevelop = True |
| 36 | +changedir = . |
39 | 37 | deps =
|
40 | 38 | {[testenv]deps}
|
41 | 39 | coveralls
|
42 | 40 | commands=
|
43 |
| - coverage run --source=pytest_bdd {envdir}/bin/py.test tests |
| 41 | + coverage run --branch --source=pytest_bdd {envbindir}/pytest tests |
44 | 42 | coverage report -m
|
45 | 43 | coveralls
|
46 | 44 |
|
|
0 commit comments