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