Skip to content

Commit 44298eb

Browse files
cclaussgoswami-rahul
authored andcommitted
Travis CI: Drop the EOL Python 3.4 and add 3.7 (keon#513)
* Travis CI: Drop the EOL Python 3.4 and add 3.7 * Tox.ini: Travis CI: Drop the EOL py34
1 parent a941edc commit 44298eb

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.travis.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
group: travis_latest
2+
dist: xenial # Travis CI's default distro
23
language: python
34
cache:
45
directories:
56
- $HOME/.cache/pip
67
matrix:
78
include:
8-
- python: 3.4
9-
env: TOX_ENV=py34
109
- python: 3.5
11-
env: TOX_ENV=py35,coverage
10+
env: TOX_ENV=py35
1211
- python: 3.6
1312
env: TOX_ENV=py36
13+
- python: 3.7
14+
env: TOX_ENV=py37,coverage
1415
install:
1516
- pip install -r test_requirements.txt
1617
before_script:
@@ -20,10 +21,10 @@ before_script:
2021
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
2122
script:
2223
# Check python install package
23-
- pip3 install -e .
24+
- pip install -e .
2425
- tox -e $TOX_ENV
2526
# Check python uninstall package
26-
- pip3 uninstall -y algorithms
27+
- pip uninstall -y algorithms
2728
notifications:
2829
on_success: change
2930
on_failure: change # `always` will be the setting once code changes slow down

tox.ini

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
[tox]
22
envlist =
3-
py34
43
py35
54
py36
5+
py37
66
coverage
77

88
[testenv]
99
passenv = TRAVIS TRAVIS_*
1010
basepython =
11-
py34: python3.4
1211
py35: python3.5
1312
py36: python3.6
1413
py37: python3.7
@@ -20,30 +19,30 @@ commands =
2019
coverage report -m
2120
coveralls
2221

23-
[testenv:py34]
22+
[testenv:py35]
2423
passenv = CI TRAVIS TRAVIS_*
2524
basepython =
26-
python3.4
25+
python3.5
2726
deps =
2827
pytest
2928
commands =
3029
python3 -m unittest discover tests
3130
python3 -m pytest tests
3231

33-
[testenv:py35]
32+
[testenv:py36]
3433
passenv = CI TRAVIS TRAVIS_*
3534
basepython =
36-
python3.5
35+
python3.6
3736
deps =
3837
pytest
3938
commands =
4039
python3 -m unittest discover tests
4140
python3 -m pytest tests
4241

43-
[testenv:py36]
42+
[testenv:py37]
4443
passenv = CI TRAVIS TRAVIS_*
4544
basepython =
46-
python3.6
45+
python3.7
4746
deps =
4847
pytest
4948
commands =
@@ -54,7 +53,7 @@ commands =
5453
passenv = CI TRAVIS TRAVIS_*
5554
skip_install = True
5655
basepython =
57-
python3.5
56+
python3.7
5857
commands =
5958
coverage run --source=tests,algorithms -m unittest discover tests
6059
coverage report -m

0 commit comments

Comments
 (0)