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 |
Jon Wayne Parrott | 27f6e1e | 2016-10-13 09:46:49 -0700 | [diff] [blame] | 12 | certifi |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 13 | commands = |
| 14 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} |
| 15 | |
| 16 | [testenv:cover] |
| 17 | basepython = python3.5 |
| 18 | commands = |
| 19 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests |
| 20 | coverage report --show-missing --fail-under=100 |
| 21 | deps = |
| 22 | {[testenv]deps} |
| 23 | |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 24 | [testenv:py35-system] |
| 25 | basepython = python3.5 |
| 26 | commands = |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame^] | 27 | py.test --ignore system_tests/app_engine/app {posargs:system_tests} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 28 | deps = |
| 29 | {[testenv]deps} |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame^] | 30 | passenv = |
| 31 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 32 | |
| 33 | [testenv:py27-system] |
| 34 | basepython = python2.7 |
| 35 | commands = |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame^] | 36 | py.test --ignore system_tests/app_engine/app {posargs:system_tests} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 37 | deps = |
| 38 | {[testenv]deps} |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame^] | 39 | passenv = |
| 40 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 41 | |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 42 | [testenv:docgen] |
| 43 | basepython = python3.5 |
| 44 | deps = |
| 45 | {[testenv]deps} |
| 46 | sphinx |
Jon Wayne Parrott | 55e0a3b | 2016-10-14 13:55:55 -0700 | [diff] [blame] | 47 | setenv = |
| 48 | SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance |
Jon Wayne Parrott | 8713a71 | 2016-10-04 14:19:01 -0700 | [diff] [blame] | 49 | commands = |
| 50 | rm -r docs/reference |
| 51 | sphinx-apidoc --output-dir docs/reference --separate --module-first google |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 52 | |
| 53 | [testenv:docs] |
| 54 | basepython = python3.5 |
| 55 | deps = |
| 56 | {[testenv]deps} |
| 57 | sphinx |
Jon Wayne Parrott | a60ab7f | 2016-10-13 10:52:04 -0700 | [diff] [blame] | 58 | -r{toxinidir}/docs/requirements-docs.txt |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 59 | commands = make -C docs html |
| 60 | |
| 61 | [testenv:lint] |
| 62 | basepython = python3.5 |
| 63 | commands = |
Jon Wayne Parrott | 246df81 | 2016-10-21 14:31:06 -0700 | [diff] [blame] | 64 | python setup.py check --metadata --restructuredtext --strict |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 65 | flake8 \ |
| 66 | --import-order-style=google \ |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 67 | --application-import-names="google,tests,system_tests" \ |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 68 | google tests |
| 69 | pylint --rcfile pylintrc google |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 70 | pylint --rcfile pylintrc.tests tests system_tests |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 71 | deps = |
| 72 | flake8 |
| 73 | flake8-import-order |
| 74 | pylint |
Jon Wayne Parrott | 246df81 | 2016-10-21 14:31:06 -0700 | [diff] [blame] | 75 | docutils |