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