blob: 4d54203d083e1d35d2a15590b3933e601fd877d9 [file] [log] [blame]
Jon Wayne Parrott90db9f22016-10-21 15:05:37 -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 httplib2
12 {toxinidir}/..
13# Always recreate because of the relative path in deps above.
14recreate = True
15commands =
16 py.test --cov=google_auth_httplib2 --cov=tests {posargs:tests}
17
18[testenv:cover]
19basepython = python3.5
20commands =
21 py.test --cov=google_auth_httplib2 --cov=tests --cov-report= tests
22 coverage report --show-missing --fail-under=100
23deps =
24 {[testenv]deps}
25
26[testenv:lint]
27basepython = python3.5
28commands =
29 python setup.py check --metadata --restructuredtext --strict
30 flake8 \
31 --import-order-style=google \
32 --application-import-names="google_auth_httplib2,tests" \
33 google_auth_httplib2.py tests
34 pylint --rcfile pylintrc google_auth_httplib2.py
35 pylint --rcfile pylintrc.tests tests
36deps =
37 flake8
38 flake8-import-order
39 pylint
40 docutils