blob: 427f2b7266a5eefb5dee87759466688b28ec902b [file] [log] [blame]
Jon Wayne Parrott377f2932016-10-04 10:20:36 -07001[tox]
2envlist = lint,py27,py34,py35,pypy,cover
3
4[testenv]
5deps =
6 flask
7 mock
8 pytest
9 pytest-cov
10 pytest-localserver
11 urllib3
Jon Wayne Parrott27f6e1e2016-10-13 09:46:49 -070012 certifi
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070013commands =
14 py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests}
15
16[testenv:cover]
17basepython = python3.5
18commands =
19 py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests
20 coverage report --show-missing --fail-under=100
21deps =
22 {[testenv]deps}
23
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070024[testenv:py35-system]
25basepython = python3.5
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070026changedir = {toxinidir}/system_tests
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070027commands =
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070028 nox {posargs}
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070029deps =
30 {[testenv]deps}
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070031 nox-automation
Jon Wayne Parrott7a27f472016-10-27 13:25:59 -070032passenv =
33 SKIP_APP_ENGINE_SYSTEM_TEST
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070034 CLOUD_SDK_ROOT
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070035
36[testenv:py27-system]
37basepython = python2.7
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070038changedir = {toxinidir}/system_tests
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070039commands =
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070040 nox {posargs}
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070041deps =
42 {[testenv]deps}
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070043 nox-automation
Jon Wayne Parrott7a27f472016-10-27 13:25:59 -070044passenv =
45 SKIP_APP_ENGINE_SYSTEM_TEST
Jon Wayne Parrottbbc39432016-10-27 23:12:39 -070046 CLOUD_SDK_ROOT
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070047
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070048[testenv:docgen]
49basepython = python3.5
50deps =
51 {[testenv]deps}
52 sphinx
Jon Wayne Parrott55e0a3b2016-10-14 13:55:55 -070053setenv =
54 SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance
Jon Wayne Parrott8713a712016-10-04 14:19:01 -070055commands =
56 rm -r docs/reference
57 sphinx-apidoc --output-dir docs/reference --separate --module-first google
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070058
59[testenv:docs]
60basepython = python3.5
61deps =
62 {[testenv]deps}
63 sphinx
Jon Wayne Parrotta60ab7f2016-10-13 10:52:04 -070064 -r{toxinidir}/docs/requirements-docs.txt
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070065commands = make -C docs html
66
67[testenv:lint]
68basepython = python3.5
69commands =
Jon Wayne Parrott246df812016-10-21 14:31:06 -070070 python setup.py check --metadata --restructuredtext --strict
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070071 flake8 \
72 --import-order-style=google \
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070073 --application-import-names="google,tests,system_tests" \
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070074 google tests
75 pylint --rcfile pylintrc google
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070076 pylint --rcfile pylintrc.tests tests system_tests
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070077deps =
78 flake8
79 flake8-import-order
80 pylint
Jon Wayne Parrott246df812016-10-21 14:31:06 -070081 docutils