Skip to content

Commit eaa6931

Browse files
authored
try to switch on the native python 3.7 (#75)
* switch on the native python 3.7 * complete with tags
1 parent ccdc33d commit eaa6931

File tree

2 files changed

+98
-13
lines changed

2 files changed

+98
-13
lines changed

.travis.yml

Lines changed: 97 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,132 @@
11
sudo: false
22
language: python
33
os: linux
4-
python:
5-
- 3.4
6-
- 3.5
7-
- 3.6
8-
- &mainstream_python 3.7-dev
9-
- &pypy pypy3.5
104
install:
115
- &upgrade_python_toolset pip install --upgrade pip setuptools wheel
12-
- pip install tox-travis
6+
- pip install tox
137
- pip install coveralls
14-
script: tox
8+
script: []
159
after_success:
1610
- coveralls
1711

1812
jobs:
1913
fast_finish: true
2014
include:
15+
- stage: test
16+
name: "Python 3.4"
17+
python: 3.4
18+
script:
19+
- tox -e py34
20+
- stage: test
21+
name: "Python 3.4 no coverage"
22+
python: 3.4
23+
script:
24+
- tox -e py34-nocov
25+
after_success: skip
26+
27+
- stage: test
28+
name: "Python 3.5"
29+
python: 3.5
30+
script:
31+
- tox -e py35
32+
- stage: test
33+
name: "Python 3.5 no coverage"
34+
python: 3.5
35+
script:
36+
- tox -e py35-nocov
37+
after_success: skip
38+
39+
- stage: test
40+
name: "Python 3.6"
41+
python: 3.6
42+
script:
43+
- tox -e py36
44+
- stage: test
45+
name: "Python 3.6 no coverage"
46+
python: 3.6
47+
script:
48+
- tox -e py36-nocov
49+
after_success: skip
50+
51+
- stage: test
52+
name: "Python 3.7"
53+
python: 3.7
54+
dist: xenial
55+
sudo: true
56+
script:
57+
- tox -e py37
58+
- stage: test
59+
name: "Python 3.7 no coverage"
60+
python: 3.7
61+
dist: xenial
62+
sudo: true
63+
script:
64+
- tox -e py37-nocov
65+
after_success: skip
66+
67+
- stage: test
68+
name: "PyPy3"
69+
python: pypy3.5
70+
script:
71+
- tox -e pypy3
72+
2173
- stage: Static analisys
74+
name: "PyLint"
2275
python: 3.6
2376
services: []
2477
install:
2578
- *upgrade_python_toolset
2679
- pip install tox
2780
script:
28-
- tox -e pylint,bandit,mypy
81+
- tox -e pylint
82+
after_success: skip
83+
- stage: Static analisys
84+
name: "Bandit"
85+
python: 3.6
86+
services: []
87+
install:
88+
- *upgrade_python_toolset
89+
- pip install tox
90+
script:
91+
- tox -e bandit
92+
after_success: skip
93+
- stage: Static analisys
94+
name: "MyPy"
95+
python: 3.7
96+
dist: xenial
97+
sudo: true
98+
services: []
99+
install:
100+
- *upgrade_python_toolset
101+
- pip install tox
102+
script:
103+
- tox mypy
29104
after_success: skip
30105

31106
- stage: Code style check
32-
python: *mainstream_python
107+
name: "PEP8"
108+
python: 3.6
109+
install:
110+
- *upgrade_python_toolset
111+
- pip install tox
112+
script:
113+
- tox -e pep8
114+
after_success: skip
115+
- stage: Code style check
116+
name: "PEP257"
117+
python: 3.6
33118
install:
34119
- *upgrade_python_toolset
35120
- pip install tox
36121
script:
37-
- tox -e pep8,pep257
122+
- tox -e pep257
38123
after_success: skip
39124

40125
- stage: deploy
41126
# This prevents job from appearing in test plan unless commit is tagged:
42127
if: tag IS present
43128
# Run on pypy to build not cythonized wheel
44-
python: *pypy
129+
python: pypy3.5
45130
services:
46131
- docker
47132
install:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ deps =
2020
pytest-cov
2121
pytest-html
2222
pytest-sugar
23-
py{34,35,36}-nocov: Cython
23+
py{34,35,36,37}-nocov: Cython
2424
-r{toxinidir}/CI_REQUIREMENTS.txt
2525

2626
commands =

0 commit comments

Comments
 (0)