blob: 5f2df1c92531591e231354c54a10535470c0b797 [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
Jon Wayne Parrott8713a712016-10-04 14:19:01 -070028commands =
29 rm -r docs/reference
30 sphinx-apidoc --output-dir docs/reference --separate --module-first google
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070031
32[testenv:docs]
33basepython = python3.5
34deps =
35 {[testenv]deps}
36 sphinx
37commands = make -C docs html
38
39[testenv:lint]
40basepython = python3.5
41commands =
42 flake8 \
43 --import-order-style=google \
44 --application-import-names="google,tests" \
45 google tests
46 pylint --rcfile pylintrc google
47 pylint --rcfile pylintrc.tests tests
48deps =
49 flake8
50 flake8-import-order
51 pylint