Jon Wayne Parrott | 90db9f2 | 2016-10-21 15:05:37 -0700 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = lint,py27,py34,py35,pypy,cover |
| 3 | |
| 4 | [testenv] |
| 5 | deps = |
| 6 | flask |
| 7 | mock |
| 8 | pytest |
| 9 | pytest-cov |
| 10 | pytest-localserver |
| 11 | httplib2 |
| 12 | {toxinidir}/.. |
| 13 | # Always recreate because of the relative path in deps above. |
| 14 | recreate = True |
| 15 | commands = |
| 16 | py.test --cov=google_auth_httplib2 --cov=tests {posargs:tests} |
| 17 | |
| 18 | [testenv:cover] |
| 19 | basepython = python3.5 |
| 20 | commands = |
| 21 | py.test --cov=google_auth_httplib2 --cov=tests --cov-report= tests |
| 22 | coverage report --show-missing --fail-under=100 |
| 23 | deps = |
| 24 | {[testenv]deps} |
| 25 | |
| 26 | [testenv:lint] |
| 27 | basepython = python3.5 |
| 28 | commands = |
| 29 | python setup.py check --metadata --restructuredtext --strict |
| 30 | flake8 \ |
| 31 | --import-order-style=google \ |
| 32 | --application-import-names="google_auth_httplib2,tests" \ |
| 33 | google_auth_httplib2.py tests |
| 34 | pylint --rcfile pylintrc google_auth_httplib2.py |
| 35 | pylint --rcfile pylintrc.tests tests |
| 36 | deps = |
| 37 | flake8 |
| 38 | flake8-import-order |
| 39 | pylint |
| 40 | docutils |