Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 7ecc5a8

Browse files
authored
ref: Simplify travis setup (#1303)
* ref: Simplify travis setup * ref: Remove python 3.8 again * ref: Use Python 3.6 for linting (no sudo!) * ref: Only run flake8 in CI
1 parent 719be9a commit 7ecc5a8

File tree

3 files changed

+48
-137
lines changed

3 files changed

+48
-137
lines changed

.travis.yml

Lines changed: 20 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
language: python
2+
python:
3+
- "2.7"
4+
- "pypy"
5+
- "3.4"
6+
- "3.5"
7+
- "3.6"
8+
9+
matrix:
10+
include:
11+
- python: "3.7"
12+
dist: xenial
13+
sudo: true
14+
15+
- name: Flake8
16+
python: "3.6"
17+
install:
18+
- pip install tox
19+
script: tox -e flake8
20+
221
sudo: false
322
addons:
423
apt:
@@ -17,123 +36,7 @@ jobs:
1736
# - python: 3.5
1837
# env: TOXENV=py35-django-dev-fix
1938

20-
include:
21-
- stage: core
22-
python: 2.7
23-
env: TOXENV=py27
24-
- stage: core
25-
python: 3.4
26-
env: TOXENV=py34
27-
- stage: core
28-
python: 3.5
29-
env: TOXENV=py35
30-
- stage: core
31-
python: 3.6
32-
env: TOXENV=py36
33-
- stage: core
34-
python: pypy
35-
env: TOXENV=pypy
36-
- stage: core
37-
python: 3.5
38-
env: TOXENV=flake8
39-
40-
41-
- stage: contrib
42-
python: 2.7
43-
env: TOXENV=py27-django-16
44-
- stage: contrib
45-
python: 2.7
46-
env: TOXENV=py27-django-17
47-
- stage: contrib
48-
python: 2.7
49-
env: TOXENV=py27-django-18
50-
- stage: contrib
51-
python: 2.7
52-
env: TOXENV=py27-django-19
53-
- stage: contrib
54-
python: 2.7
55-
env: TOXENV=py27-django-110
56-
57-
- stage: contrib
58-
python: 3.4
59-
env: TOXENV=py34-django-17
60-
- stage: contrib
61-
python: 3.4
62-
env: TOXENV=py34-django-18
63-
- stage: contrib
64-
python: 3.4
65-
env: TOXENV=py34-django-19
66-
- stage: contrib
67-
python: 3.4
68-
env: TOXENV=py34-django-110
69-
70-
- stage: contrib
71-
python: 3.5
72-
env: TOXENV=py35-django-18
73-
- stage: contrib
74-
python: 3.5
75-
env: TOXENV=py35-django-19
76-
- stage: contrib
77-
python: 3.5
78-
env: TOXENV=py35-django-110
79-
- stage: contrib
80-
python: 3.5
81-
env: TOXENV=py35-django-111
82-
- stage: contrib
83-
python: 3.5
84-
env: TOXENV=py35-django-200
85-
# - stage: contrib
86-
# python: 3.5
87-
# env: TOXENV=py35-django-dev-fix
88-
89-
- stage: contrib
90-
python: 2.7
91-
env: TOXENV=py27-flask-10
92-
- stage: contrib
93-
python: 2.7
94-
env: TOXENV=py27-flask-11
95-
- stage: contrib
96-
python: 3.5
97-
env: TOXENV=py35-flask-10
98-
- stage: contrib
99-
python: 3.5
100-
env: TOXENV=py35-flask-11
101-
- stage: contrib
102-
python: 3.5
103-
env: TOXENV=py35-flask-12
104-
105-
- stage: contrib
106-
python: 2.7
107-
env: TOXENV=py27-celery-3
108-
- stage: contrib
109-
python: 2.7
110-
env: TOXENV=py27-celery-4
111-
112-
- stage: contrib
113-
python: 2.7
114-
env: TOXENV=py27-lambda
115-
116-
- stage: contrib
117-
python: 3.6
118-
env: TOXENV=py36-lambda
119-
120-
- stage: contrib
121-
python: 3.5
122-
env: TOXENV=py35-sanic-07
123-
124-
- stage: contrib
125-
python: 3.6
126-
env: TOXENV=py36-sanic-07
127-
128-
#- stage: deploy
129-
# script: ./setup.py sdist --formats=gztar bdist_wheel
130-
#if: branch = master
131-
#python: 2.7
132-
#after_success:
133-
# - npm install -g @zeus-ci/cli
134-
# - zeus upload -t "application/zip+wheel" dist/*
135-
136-
script: tox
39+
script: sh ci/runtox.sh
13740
install:
13841
- make
13942
- pip install codecov

ci/runtox.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
if [ -z "$1" ]; then
3+
searchstring="$(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
4+
else
5+
searchstring="$1"
6+
fi
7+
8+
exec tox -e $(tox -l | grep $searchstring | tr '\n' ',')

tox.ini

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,23 @@
66
[tox]
77
envlist =
88
# core
9-
py{27,34,35,36}
9+
py{27,34,35,36,37}
1010
pypy
1111
flake8
1212
# contrib
13-
{py35,py36}-django-dev
14-
{py35,py36}-django-{200}
13+
{py35,py36,py37}-django-dev
14+
{py35,py36,py37}-django-{200}
1515
{py27,py35}-django-111
16-
{py27,py34,py35}-django-{18,19,110}
17-
{py27,py34,py35}-django-18
16+
{py27,py34,py35,py36}-django-{18,19,110}
17+
{py27,py34,py35,py36}-django-18
1818
{py27,py34}-django-17
1919
py27-django-16
20-
{py27,py35}-flask-{10,11}
21-
py35-flask-12
22-
py35-flask-dev
20+
{py27,py35,py36,py37}-flask-{10,11}
21+
py37-flask-12
22+
py37-flask-dev
2323
py27-celery-{3,4}
24-
py{27,36}-lambda
25-
py{35,36}-sanic-07
26-
24+
py{27,37}-lambda
25+
py{35,36,37}-sanic-07
2726

2827
[testenv]
2928
deps =
@@ -66,6 +65,7 @@ basepython =
6665
py34: python3.4
6766
py35: python3.5
6867
py36: python3.6
68+
py37: python3.7
6969
pypy: pypy
7070

7171
commands =
@@ -80,7 +80,7 @@ commands:
8080

8181

8282
[testenv:flake8]
83-
basepython = python3.5
83+
basepython = python3.6
8484
skip_install = true
8585
deps =
8686
flake8
@@ -90,7 +90,7 @@ commands =
9090
flake8 raven/ setup.py
9191

9292
[testenv:pylint]
93-
basepython = python3.5
93+
basepython = python3.6
9494
skip_install = true
9595
deps =
9696
pyflakes
@@ -100,15 +100,15 @@ commands =
100100

101101

102102
[testenv:bandit]
103-
basepython = python3.5
103+
basepython = python3.6
104104
skip_install = true
105105
deps =
106106
bandit
107107
commands =
108108
bandit -r raven/ -c .bandit.yml
109109

110110
[testenv:linters]
111-
basepython = python3.5
111+
basepython = python3.6
112112
skip_install = true
113113
deps =
114114
{[testenv:flake8]deps}
@@ -122,15 +122,15 @@ commands =
122122
{[testenv:bandit]commands}
123123

124124
[testenv:readme]
125-
basepython = python3.5
125+
basepython = python3.6
126126
deps =
127127
readme_renderer
128128
commands =
129129
python setup.py check -r -s
130130

131131
# Release tooling
132132
[testenv:build]
133-
basepython = python3.5
133+
basepython = python3.6
134134
skip_install = true
135135
deps =
136136
wheel
@@ -139,23 +139,23 @@ commands =
139139
python setup.py -q sdist bdist_wheel
140140

141141
[testenv:release]
142-
basepython = python3.5
142+
basepython = python3.6
143143
skip_install = true
144144
deps =
145145
bumpversion
146146
commands =
147147
bumpversion --tag --commit {posargs} release
148148

149149
[testenv:minor]
150-
basepython = python3.5
150+
basepython = python3.6
151151
skip_install = true
152152
deps =
153153
bumpversion
154154
commands =
155155
bumpversion --commit {posargs} minor
156156

157157
[testenv:dev]
158-
basepython = python3.5
158+
basepython = python3.6
159159
skip_install = true
160160
deps =
161161
bumpversion

0 commit comments

Comments
 (0)