[tox] Move flake8 into its own environment.
This commit is contained in:
parent
32e3f987d4
commit
bb6199af65
1 changed files with 7 additions and 2 deletions
9
tox.ini
9
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue