Update to make flake8 actually work
This commit is contained in:
parent
56d6c2a929
commit
1557854755
|
@ -1,3 +1,4 @@
|
|||
sudo: false
|
||||
language: python
|
||||
python:
|
||||
- '3.5'
|
||||
|
|
27
tox.ini
27
tox.ini
|
@ -1,22 +1,21 @@
|
|||
[tox]
|
||||
|
||||
envlist = py35, py36, flake8, report
|
||||
envlist = py35, py36, flake8
|
||||
|
||||
[travis]
|
||||
|
||||
python =
|
||||
3.5: py35, flake8
|
||||
3.6: py36, flake8
|
||||
|
||||
[testenv]
|
||||
|
||||
deps =
|
||||
aiohttp
|
||||
pytest
|
||||
coverage
|
||||
|
||||
commands =
|
||||
coverage run -m pytest -v tests {posargs}
|
||||
mv .coverage .coverage.{envname}
|
||||
|
||||
whitelist_externals =
|
||||
coverage
|
||||
mv
|
||||
echo
|
||||
pytest tests {posargs}
|
||||
|
||||
[testenv:flake8]
|
||||
deps =
|
||||
|
@ -24,13 +23,3 @@ deps =
|
|||
|
||||
commands =
|
||||
flake8 sanic
|
||||
|
||||
[testenv:report]
|
||||
deps=
|
||||
coverage
|
||||
|
||||
commands =
|
||||
coverage combine
|
||||
coverage report
|
||||
coverage html
|
||||
echo "Open file://{toxinidir}/coverage/index.html"
|
||||
|
|
Loading…
Reference in New Issue
Block a user