blob: 10f7d994689150068d2ee05cbdcebba473b27b2a [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 =
27 py.test system_tests
28deps =
29 {[testenv]deps}
30
31[testenv:py27-system]
32basepython = python2.7
33commands =
34 py.test system_tests
35deps =
36 {[testenv]deps}
37
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070038[testenv:docgen]
39basepython = python3.5
40deps =
41 {[testenv]deps}
42 sphinx
Jon Wayne Parrott55e0a3b2016-10-14 13:55:55 -070043setenv =
44 SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance
Jon Wayne Parrott8713a712016-10-04 14:19:01 -070045commands =
46 rm -r docs/reference
47 sphinx-apidoc --output-dir docs/reference --separate --module-first google
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070048
49[testenv:docs]
50basepython = python3.5
51deps =
52 {[testenv]deps}
53 sphinx
Jon Wayne Parrotta60ab7f2016-10-13 10:52:04 -070054 -r{toxinidir}/docs/requirements-docs.txt
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070055commands = make -C docs html
56
57[testenv:lint]
58basepython = python3.5
59commands =
Jon Wayne Parrott246df812016-10-21 14:31:06 -070060 python setup.py check --metadata --restructuredtext --strict
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070061 flake8 \
62 --import-order-style=google \
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070063 --application-import-names="google,tests,system_tests" \
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070064 google tests
65 pylint --rcfile pylintrc google
Jon Wayne Parrott447c5be2016-10-25 09:32:25 -070066 pylint --rcfile pylintrc.tests tests system_tests
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070067deps =
68 flake8
69 flake8-import-order
70 pylint
Jon Wayne Parrott246df812016-10-21 14:31:06 -070071 docutils