blob: d2a5f1f8b9df44227de6a93f420ebee1622cf17e [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
12commands =
13 py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests}
14
15[testenv:cover]
16basepython = python3.5
17commands =
18 py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests
19 coverage report --show-missing --fail-under=100
20deps =
21 {[testenv]deps}
22
23[testenv:docgen]
24basepython = python3.5
25deps =
26 {[testenv]deps}
27 sphinx
28commands = sphinx-apidoc --output-dir docs/reference --separate --module-first google
29
30[testenv:docs]
31basepython = python3.5
32deps =
33 {[testenv]deps}
34 sphinx
35commands = make -C docs html
36
37[testenv:lint]
38basepython = python3.5
39commands =
40 flake8 \
41 --import-order-style=google \
42 --application-import-names="google,tests" \
43 google tests
44 pylint --rcfile pylintrc google
45 pylint --rcfile pylintrc.tests tests
46deps =
47 flake8
48 flake8-import-order
49 pylint