blob: 6864ddee74a8237b56239483355fc67ac76c02db [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
26commands =
Jon Wayne Parrott7a27f472016-10-27 13:25:59 -070027 py.test --ignore system_tests/app_engine/app {posargs:system_tests}
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070028deps =
29 {[testenv]deps}
Jon Wayne Parrott7a27f472016-10-27 13:25:59 -070030passenv =
31 SKIP_APP_ENGINE_SYSTEM_TEST
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070032
33[testenv:py27-system]
34basepython = python2.7
35commands =
Jon Wayne Parrott7a27f472016-10-27 13:25:59 -070036 py.test --ignore system_tests/app_engine/app {posargs:system_tests}
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070037deps =
38 {[testenv]deps}
Jon Wayne Parrott7a27f472016-10-27 13:25:59 -070039passenv =
40 SKIP_APP_ENGINE_SYSTEM_TEST
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070041
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070042[testenv:docgen]
43basepython = python3.5
44deps =
45 {[testenv]deps}
46 sphinx
Jon Wayne Parrott55e0a3b2016-10-14 13:55:55 -070047setenv =
48 SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance
Jon Wayne Parrott8713a712016-10-04 14:19:01 -070049commands =
50 rm -r docs/reference
51 sphinx-apidoc --output-dir docs/reference --separate --module-first google
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070052
53[testenv:docs]
54basepython = python3.5
55deps =
56 {[testenv]deps}
57 sphinx
Jon Wayne Parrotta60ab7f2016-10-13 10:52:04 -070058 -r{toxinidir}/docs/requirements-docs.txt
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070059commands = make -C docs html
60
61[testenv:lint]
62basepython = python3.5
63commands =
Jon Wayne Parrott246df812016-10-21 14:31:06 -070064 python setup.py check --metadata --restructuredtext --strict
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070065 flake8 \
66 --import-order-style=google \
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070067 --application-import-names="google,tests,system_tests" \
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070068 google tests
69 pylint --rcfile pylintrc google
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070070 pylint --rcfile pylintrc.tests tests system_tests
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070071deps =
72 flake8
73 flake8-import-order
74 pylint
Jon Wayne Parrott246df812016-10-21 14:31:06 -070075 docutils