Skip to content

Commit 1b2b09c

Browse files
committed
Enable testing for Python 3.8
Python 3.8 is almost there, so I believe that it would be nice to have tests for it on CI. Python 3.8 schedule: https://www.python.org/dev/peps/pep-0569/#schedule
1 parent 2b3fe30 commit 1b2b09c

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ matrix:
2828
env: TOXENV=py37
2929
- python: 3.7
3030
env: TOXENV=py37-functional
31+
- python: 3.8-dev
32+
env: TOXENV=py38
33+
- python: 3.8-dev
34+
env: TOXENV=py38-functional
3135

3236
install:
3337
- pip install tox

tox.ini

+5-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[tox]
2-
envlist = py27, py35, py36, py37
2+
envlist =
3+
py27, py3{5,6,7,8}
4+
py27-functional, py3{5,6,7,8}-functional
35

46
[testenv]
57
passenv = TOXENV CI TRAVIS TRAVIS_*
@@ -9,7 +11,8 @@ deps = -r{toxinidir}/test-requirements.txt
911
-r{toxinidir}/requirements.txt
1012
commands =
1113
python -V
12-
py.test -vvv -s --ignore=kubernetes/e2e_test
14+
!functional: py.test -vvv -s --ignore=kubernetes/e2e_test
15+
functional: {toxinidir}/scripts/kube-init.sh py.test -vvv -s []
1316

1417
[testenv:docs]
1518
commands =
@@ -19,26 +22,6 @@ commands =
1922
commands =
2023
{toxinidir}/scripts/update-pycodestyle.sh
2124

22-
[testenv:py27-functional]
23-
commands =
24-
python -V
25-
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
26-
27-
[testenv:py35-functional]
28-
commands =
29-
python -V
30-
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
31-
32-
[testenv:py36-functional]
33-
commands =
34-
python -V
35-
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
36-
37-
[testenv:py37-functional]
38-
commands =
39-
python -V
40-
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
41-
4225
[testenv:coverage]
4326
commands =
4427
python -V

0 commit comments

Comments
 (0)