Skip to content

Commit f2e120c

Browse files
committed
Python 3.7 release
- add Python 3.8 dev tests as failure allowed - Python 3.7 tests are no longer allowed to fail
1 parent a295f57 commit f2e120c

File tree

2 files changed

+53
-26
lines changed

2 files changed

+53
-26
lines changed

.travis.yml

Lines changed: 48 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,68 @@
1+
group: travis_latest
12
sudo: false
23
language: python
34
cache: pip
4-
python:
5-
- 2.7
6-
- 3.4
7-
- 3.5
8-
- 3.6
9-
- 3.7-dev
10-
- nightly
11-
- pypy
5+
126
env:
137
TOXENV=py
148

9+
stages:
10+
- quick # first run quick tests: lint and doc
11+
- test # make sure we run first mandatory tests
12+
- extra # then run tests which can fail
13+
14+
jobs:
15+
include:
16+
- python: 2.7 # 2.7.14 pip 9.0.1
17+
- python: 3.4 # 3.4.6 pip 9.0.1
18+
- python: 3.5 # 3.5.5 pip 9.0.1
19+
- python: 3.6 # 3.6.3 pip 9.0.1
20+
- python: 3.7 # 3.7.0 pip 10.0.1
21+
dist: xenial
22+
sudo: true
23+
- python: 3.8-dev
24+
dist: xenial
25+
sudo: true
26+
stage: extra
27+
- python: nightly
28+
dist: xenial
29+
sudo: true
30+
stage: extra
31+
- python: pypy # 2.7.13 pip 9.0.1
32+
stage: extra
33+
- python: pypy3 # 3.5.3 pip 9.0.1
34+
stage: extra
35+
- os: osx
36+
language: generic
37+
stage: extra
38+
- python: 3.7
39+
dist: xenial
40+
sudo: true
41+
env: TOXENV=docs
42+
stage: quick
43+
- python: 3.6
44+
stage: quick
45+
env: TOXENV=fix-lint
46+
1547
matrix:
1648
fast_finish: true
1749
allow_failures:
1850
- os: osx
19-
- python: 3.7-dev
51+
- python: 3.8-dev
2052
- python: nightly
2153
- python: pypy
22-
include:
23-
- python: 3.6
24-
env: TOXENV=docs
25-
- python: 3.6
26-
env: TOXENV=fix-lint
27-
- os: osx
28-
language: generic
54+
- python: pypy3
2955

3056
before_install:
31-
- pyenv versions
32-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source .travis-osx; fi
57+
- pyenv versions
58+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source .travis-osx; fi
3359

3460
install:
35-
- pip install -U six
36-
- pip install --pre -U tox
61+
- pip install -U six
62+
- pip install --pre -U tox
3763

3864
script:
39-
- tox
65+
- tox
4066

4167
after_success:
42-
- if [[ $TOXENV == "py" ]]; then tox -e coverage,codecov; fi
68+
- if [[ $TOXENV == "py" ]]; then tox -e coverage,codecov; fi

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ envlist = py27,
33
py34,
44
py35,
55
py36,
6+
py37,
67
pypy,
78
coverage,
89
fix-lint,
@@ -22,7 +23,7 @@ commands = pytest {posargs:--cov="{envsitepackagesdir}/tox" --cov-config="{toxin
2223

2324
[testenv:docs]
2425
description = invoke sphinx-build to build the HTML docs and check that all links are valid
25-
basepython = python3.6
26+
basepython = python3.7
2627
extras = docs
2728
changedir = {toxinidir}
2829
commands = sphinx-build -d "{toxworkdir}/docs_doctree" doc "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
@@ -71,11 +72,11 @@ commands = codecov --file "{toxworkdir}/coverage.xml"
7172
[testenv:exit_code]
7273
# to see how the InvocationError is displayed, use
7374
# PYTHONPATH=.:$PYTHONPATH python3 -m tox -e exit_code
74-
basepython = python3.6
75+
basepython = python3.7
7576
description = commands with several exit codes
7677
skip_install = True
7778
changedir = {toxinidir}
78-
commands = python3.6 -c "import sys; sys.exit(139)"
79+
commands = python3.7 -c "import sys; sys.exit(139)"
7980

8081
[testenv:pra]
8182
platform = linux
@@ -95,7 +96,7 @@ description = generate a DEV environment
9596
extras = testing, docs
9697
# required to make looponfail reload on every source code change
9798
usedevelop = True
98-
basepython = python3.6
99+
basepython = python3.7
99100
changedir = {toxinidir}
100101
commands = python -m pip list --format=columns
101102
python -c 'import sys; print(sys.executable)'

0 commit comments

Comments
 (0)