2016-10-15 10:56:34 +01:00
|
|
|
[tox]
|
2017-05-02 10:17:24 +01:00
|
|
|
envlist = py35, py36, flake8, check
|
2016-12-26 03:05:11 +00:00
|
|
|
|
|
|
|
|
2017-02-05 19:44:01 +00:00
|
|
|
[travis]
|
2016-12-26 03:05:11 +00:00
|
|
|
python =
|
2017-05-02 10:17:24 +01:00
|
|
|
3.5: py35, flake8, check
|
|
|
|
3.6: py36, flake8, check
|
2016-10-15 10:56:34 +01:00
|
|
|
|
|
|
|
|
2017-02-05 19:44:01 +00:00
|
|
|
[testenv]
|
2016-10-15 10:56:34 +01:00
|
|
|
deps =
|
2017-03-29 04:34:44 +01:00
|
|
|
-rrequirements-dev.txt
|
2016-10-15 10:56:34 +01:00
|
|
|
|
|
|
|
commands =
|
2016-12-26 03:05:11 +00:00
|
|
|
pytest tests {posargs}
|
2017-02-15 23:20:43 +00:00
|
|
|
coverage erase
|
2017-02-17 13:06:57 +00:00
|
|
|
coverage run -m sanic.app
|
2017-02-15 23:20:43 +00:00
|
|
|
coverage report
|
2017-02-05 19:44:01 +00:00
|
|
|
|
2016-12-24 22:06:53 +00:00
|
|
|
[testenv:flake8]
|
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
|
|
|
|
commands =
|
|
|
|
flake8 sanic
|
2017-05-02 10:17:24 +01:00
|
|
|
|
|
|
|
[testenv:check]
|
|
|
|
deps =
|
|
|
|
docutils
|
|
|
|
pygments
|
|
|
|
commands =
|
|
|
|
python setup.py check -r -s
|