Skip to content

Commit d299bd7

Browse files
committed
Stop testing for old pytest and python versions
1 parent b3370c3 commit d299bd7

File tree

2 files changed

+23
-40
lines changed

2 files changed

+23
-40
lines changed

.travis.yml

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,12 @@
11
dist: xenial
22
language: python
3-
python: "2.7"
3+
python:
4+
- "2.7"
5+
- "3.5"
6+
- "3.6"
7+
- "3.7"
48

5-
matrix:
6-
include:
7-
- python: "2.7"
8-
env: TOXENV=py27-pytestlatest-linters
9-
- env: TOXENV=py27-pytest33
10-
- env: TOXENV=py27-pytest34
11-
- env: TOXENV=py27-pytest35
12-
- env: TOXENV=py27-pytest36
13-
- env: TOXENV=py27-pytest37
14-
- env: TOXENV=py27-pytest38
15-
- env: TOXENV=py27-pytest39
16-
- env: TOXENV=py27-pytest310
17-
- env: TOXENV=py27-pytest40
18-
- env: TOXENV=py27-pytest41
19-
- env: TOXENV=py27-pytest42
20-
- env: TOXENV=py27-pytestlatest
21-
- env: TOXENV=py27-pytestlatest-xdist
22-
- env: TOXENV=py34-pytestlatest
23-
python: "3.4"
24-
- env: TOXENV=py35-pytestlatest
25-
python: "3.5"
26-
- env: TOXENV=py36-pytestlatest
27-
python: "3.6"
28-
- env: TOXENV=py37-pytestlatest
29-
python: "3.7"
30-
- env: TOXENV=py27-pytestlatest-coveralls
31-
32-
install: pip install tox
9+
install: pip install tox tox-travis
3310

3411
script: tox --recreate
3512

@@ -39,5 +16,5 @@ branches:
3916

4017
notifications:
4118
email:
42-
43-
19+
20+

tox.ini

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
11
[tox]
2-
distshare={homedir}/.tox/distshare
3-
envlist=py27-pytestlatest-linters,py27-pytest{33,34,35,36,37,38,39,310,40,41,42,latest},py{34,35,36,37}-pytestlatest,py27-pytestlatest-xdist
2+
distshare = {homedir}/.tox/distshare
3+
envlist = py27-pytestlatest-linters,
4+
py27-pytest{36,37,38,39,310,4,41,42,43,44,45,46},
5+
py37-pytest{36,37,38,39,310,4,41,42,43,44,45,46,5,latest},
6+
py{35,36}-pytestlatest,
7+
py27-pytestlatest-xdist
48
skip_missing_interpreters = true
59

610
[testenv]
711
deps =
812
pytestlatest: pytest
13+
pytest5: pytest~=5.0.0
14+
pytest46: pytest~=4.6.0
15+
pytest45: pytest~=4.5.0
16+
pytest44: pytest~=4.4.0
17+
pytest43: pytest~=4.3.0
918
pytest42: pytest~=4.2.0
1019
pytest41: pytest~=4.1.0
11-
pytest40: pytest~=4.0.0
20+
pytest4: pytest~=4.0.0
1221
pytest310: pytest~=3.10.0
1322
pytest39: pytest~=3.9.0
1423
pytest38: pytest~=3.8.0
1524
pytest37: pytest~=3.7.0
1625
pytest36: pytest~=3.6.0
17-
pytest35: pytest~=3.5.0
18-
pytest34: pytest~=3.4.0
19-
pytest33: pytest~=3.3.2
2026
-r{toxinidir}/requirements-testing.txt
2127
commands = py.test tests --junitxml={envlogdir}/junit-{envname}.xml
2228

2329
[testenv:py27-pytestlatest-linters]
24-
commands={[testenv]commands} pytest_bdd --pep8 -m pep8
30+
commands = {[testenv]commands} pytest_bdd --pep8 -m pep8
2531

2632
[testenv:py27-pytestlatest-xdist]
2733
deps =
2834
pytest-xdist
2935
{[testenv]deps}
30-
commands={[testenv]commands} -n3 -rfsxX
36+
commands = {[testenv]commands} -n3 -rfsxX
3137

3238
[testenv:py27-pytestlatest-coveralls]
3339
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
@@ -36,7 +42,7 @@ changedir = .
3642
deps =
3743
{[testenv]deps}
3844
coveralls
39-
commands=
45+
commands =
4046
coverage run --branch --source=pytest_bdd {envbindir}/pytest tests
4147
coverage report -m
4248
coveralls

0 commit comments

Comments
 (0)