blob: ce942f165f2fb915148a5449ebc07beeaf0404a1 [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
24[testenv:docgen]
25basepython = python3.5
26deps =
27 {[testenv]deps}
28 sphinx
Jon Wayne Parrott8713a712016-10-04 14:19:01 -070029commands =
30 rm -r docs/reference
31 sphinx-apidoc --output-dir docs/reference --separate --module-first google
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070032
33[testenv:docs]
34basepython = python3.5
35deps =
36 {[testenv]deps}
37 sphinx
Jon Wayne Parrotta60ab7f2016-10-13 10:52:04 -070038 -r{toxinidir}/docs/requirements-docs.txt
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070039commands = make -C docs html
40
41[testenv:lint]
42basepython = python3.5
43commands =
44 flake8 \
45 --import-order-style=google \
46 --application-import-names="google,tests" \
47 google tests
48 pylint --rcfile pylintrc google
49 pylint --rcfile pylintrc.tests tests
50deps =
51 flake8
52 flake8-import-order
53 pylint