Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Separate flake8 check from test and update travis setting
Browse files Browse the repository at this point in the history
  • Loading branch information
miyakogi committed Jun 4, 2019
1 parent 77968c4 commit 66f4a5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: python
dist: xenial

matrix:
include:
Expand All @@ -9,9 +10,9 @@ matrix:
- python: 3.5
env: TOXENV=py
- python: 3.6
env: TOXENV=py,sphinx-dev,codecov
- python: 3.7-dev
env: TOXENV=py
- python: 3.7
env: TOXENV=py,flake8,sphinx-dev,codecov
- python: pypy
env: TOXENV=py
- python: pypy3
Expand Down
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[tox]
envlist = py{27,34,35,36,37,py,py3},sphinx-dev
envlist = py{27,34,35,36,37,py,py3},sphinx-dev,flake8

[testenv]
whitelist_externals =
make
deps =
-rrequirements-test.txt
commands =
flake8 m2r.py setup.py tests
coverage run -m unittest discover tests
coverage run -a -m sphinx -b html -d docs/_build/toctree -E -W -n -j auto -q docs docs/_build/html
coverage report
Expand All @@ -21,6 +20,12 @@ commands =
sphinx-build -b html -d docs/_build/toctree -E -W -n -j auto docs docs/_build/html
make clean

[testenv:flake8]
deps =
flake8
commands =
flake8 m2r.py setup.py tests

[testenv:codecov]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
Expand Down

0 comments on commit 66f4a5a

Please sign in to comment.