[tox] Move flake8 into its own environment.

This commit is contained in:
Tobias Gruetzmacher 2016-10-13 15:05:44 +02:00
parent 32e3f987d4
commit bb6199af65

View file

@ -1,12 +1,12 @@
[tox] [tox]
envlist = py27, py35 envlist = py27, py35, flake8
[testenv] [testenv]
commands = commands =
{envbindir}/py.test --cov=dosage --cov=dosagelib --tb=short -n4 \ {envbindir}/py.test --cov=dosage --cov=dosagelib --tb=short -n4 \
--cov-report=xml:{toxworkdir}/cov-{envname}.xml --cov-report=term \ --cov-report=xml:{toxworkdir}/cov-{envname}.xml --cov-report=term \
--junitxml={toxworkdir}/junit-{envname}.xml {posargs} --junitxml={toxworkdir}/junit-{envname}.xml {posargs}
- {envbindir}/flake8
passenv = TRAVIS passenv = TRAVIS
# Also install optional dependencies for tests. # Also install optional dependencies for tests.
deps = deps =
@ -15,6 +15,11 @@ deps =
pytest-travis-fold pytest-travis-fold
cssselect cssselect
Pillow Pillow
[testenv:flake8]
commands =
- {envbindir}/flake8
deps =
flake8 flake8
flake8-coding flake8-coding
flake8-future-import flake8-future-import