Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -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 | urllib3 |
| 12 | commands = |
| 13 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} |
| 14 | |
| 15 | [testenv:cover] |
| 16 | basepython = python3.5 |
| 17 | commands = |
| 18 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests |
| 19 | coverage report --show-missing --fail-under=100 |
| 20 | deps = |
| 21 | {[testenv]deps} |
| 22 | |
| 23 | [testenv:docgen] |
| 24 | basepython = python3.5 |
| 25 | deps = |
| 26 | {[testenv]deps} |
| 27 | sphinx |
Jon Wayne Parrott | 8713a71 | 2016-10-04 14:19:01 -0700 | [diff] [blame] | 28 | commands = |
| 29 | rm -r docs/reference |
| 30 | sphinx-apidoc --output-dir docs/reference --separate --module-first google |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 31 | |
| 32 | [testenv:docs] |
| 33 | basepython = python3.5 |
| 34 | deps = |
| 35 | {[testenv]deps} |
| 36 | sphinx |
| 37 | commands = make -C docs html |
| 38 | |
| 39 | [testenv:lint] |
| 40 | basepython = python3.5 |
| 41 | commands = |
| 42 | flake8 \ |
| 43 | --import-order-style=google \ |
| 44 | --application-import-names="google,tests" \ |
| 45 | google tests |
| 46 | pylint --rcfile pylintrc google |
| 47 | pylint --rcfile pylintrc.tests tests |
| 48 | deps = |
| 49 | flake8 |
| 50 | flake8-import-order |
| 51 | pylint |