Skip to content

Commit 56c2169

Browse files
authored
CI extensions: Native python 3.7, expanded stages (#19)
1 parent 743bb96 commit 56c2169

File tree

2 files changed

+106
-16
lines changed

2 files changed

+106
-16
lines changed

.travis.yml

Lines changed: 105 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,139 @@
11
sudo: false
22
language: python
33
os: linux
4-
python:
5-
- 2.7
6-
- 3.4
7-
- 3.5
8-
- 3.6
9-
- &mainstream_python 3.7-dev
10-
- pypy
11-
- &pypy pypy3.5
124
install:
135
- &upgrade_python_toolset pip install --upgrade pip setuptools wheel
146
- pip install tox-travis
157
- pip install coveralls
16-
script: tox
8+
script: []
179
after_success:
1810
- coveralls
1911

2012
jobs:
2113
fast_finish: true
2214
include:
15+
- stage: test
16+
name: "Python 2.7"
17+
python: 2.7
18+
script:
19+
- tox -e py34
20+
- stage: test
21+
name: "Python 3.4"
22+
python: 3.4
23+
script:
24+
- tox -e py34
25+
- stage: test
26+
name: "Python 3.5"
27+
python: 3.5
28+
script:
29+
- tox -e py35
30+
- stage: test
31+
name: "Python 3.6"
32+
python: 3.6
33+
script:
34+
- tox -e py36
35+
- stage: test
36+
name: "Python 3.7"
37+
python: 3.7
38+
dist: xenial
39+
sudo: true
40+
script:
41+
- tox -e py37
42+
- stage: test
43+
name: "PyPy"
44+
python: pypy
45+
script:
46+
- tox -e pypy
47+
- stage: test
48+
name: "PyPy3"
49+
python: pypy3.5
50+
script:
51+
- tox -e pypy3
52+
53+
- stage: Static analisys
54+
name: "PyLint"
55+
python: 3.6
56+
services: []
57+
install:
58+
- *upgrade_python_toolset
59+
- pip install tox
60+
script:
61+
- tox -e pylint
62+
after_success: skip
2363
- stage: Static analisys
64+
name: "Bandit"
2465
python: 3.6
25-
services: skip
66+
services: []
67+
install:
68+
- *upgrade_python_toolset
69+
- pip install tox
70+
script:
71+
- tox -e bandit
72+
after_success: skip
73+
- stage: Static analisys
74+
name: "MyPy"
75+
python: 3.7
76+
dist: xenial
77+
sudo: true
78+
services: []
2679
install:
2780
- *upgrade_python_toolset
2881
- pip install tox
2982
script:
30-
- tox -e pylint,bandit,mypy
83+
- tox -e mypy
84+
after_success: skip
85+
86+
- stage: Test cythonized
87+
name: "Python 3.4"
88+
python: 3.4
89+
script:
90+
- tox -e py34-nocov
91+
after_success: skip
92+
- stage: Test cythonized
93+
name: "Python 3.5"
94+
python: 3.5
95+
script:
96+
- tox -e py35-nocov
97+
after_success: skip
98+
- stage: Test cythonized
99+
name: "Python 3.6"
100+
python: 3.6
101+
script:
102+
- tox -e py36-nocov
103+
after_success: skip
104+
- stage: Test cythonized
105+
name: "Python 3.7"
106+
python: 3.7
107+
dist: xenial
108+
sudo: true
109+
script:
110+
- tox -e py37-nocov
31111
after_success: skip
32112

33113
- stage: Code style check
34-
python: *mainstream_python
35-
services: skip
114+
name: "PEP8"
115+
python: 3.6
116+
install:
117+
- *upgrade_python_toolset
118+
- pip install tox
119+
script:
120+
- tox -e pep8
121+
after_success: skip
122+
- stage: Code style check
123+
name: "PEP257"
124+
python: 3.6
36125
install:
37126
- *upgrade_python_toolset
38127
- pip install tox
39128
script:
40-
- tox -e pep8,pep257
129+
- tox -e pep257
41130
after_success: skip
42131

43132
- stage: deploy
44133
# This prevents job from appearing in test plan unless commit is tagged:
45134
if: tag IS present
46-
python: *pypy
135+
# Run on pypy to build not cythonized wheel
136+
python: pypy3.5
47137
services:
48138
- docker
49139
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
py{27,py}: mock
2626

0 commit comments

Comments
 (0)