Skip to content

Commit 66f4a5a

Browse files
committed
Separate flake8 check from test and update travis setting
1 parent 77968c4 commit 66f4a5a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: python
2+
dist: xenial
23

34
matrix:
45
include:
@@ -9,9 +10,9 @@ matrix:
910
- python: 3.5
1011
env: TOXENV=py
1112
- python: 3.6
12-
env: TOXENV=py,sphinx-dev,codecov
13-
- python: 3.7-dev
1413
env: TOXENV=py
14+
- python: 3.7
15+
env: TOXENV=py,flake8,sphinx-dev,codecov
1516
- python: pypy
1617
env: TOXENV=py
1718
- python: pypy3

tox.ini

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[tox]
2-
envlist = py{27,34,35,36,37,py,py3},sphinx-dev
2+
envlist = py{27,34,35,36,37,py,py3},sphinx-dev,flake8
33

44
[testenv]
55
whitelist_externals =
66
make
77
deps =
88
-rrequirements-test.txt
99
commands =
10-
flake8 m2r.py setup.py tests
1110
coverage run -m unittest discover tests
1211
coverage run -a -m sphinx -b html -d docs/_build/toctree -E -W -n -j auto -q docs docs/_build/html
1312
coverage report
@@ -21,6 +20,12 @@ commands =
2120
sphinx-build -b html -d docs/_build/toctree -E -W -n -j auto docs docs/_build/html
2221
make clean
2322

23+
[testenv:flake8]
24+
deps =
25+
flake8
26+
commands =
27+
flake8 m2r.py setup.py tests
28+
2429
[testenv:codecov]
2530
passenv = CI TRAVIS TRAVIS_*
2631
deps = codecov

0 commit comments

Comments
 (0)