forked from googleapis/google-auth-library-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
89 lines (82 loc) · 1.83 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[tox]
envlist = lint,py27,py34,py35,py36,pypy,cover
[testenv]
deps =
certifi
flask
mock
oauth2client
pytest
pytest-cov
pytest-localserver
requests
requests-oauthlib
urllib3
grpcio; platform_python_implementation != 'PyPy'
commands =
py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests}
[testenv:cover]
basepython = python3.6
commands =
py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests
coverage report --show-missing --fail-under=100
deps =
{[testenv]deps}
[testenv:py36-system]
basepython = python3.6
changedir = {toxinidir}/system_tests
commands =
nox {posargs}
deps =
{[testenv]deps}
nox-automation
gapic-google-cloud-pubsub-v1==0.15.0
passenv =
SKIP_APP_ENGINE_SYSTEM_TEST
CLOUD_SDK_ROOT
[testenv:py27-system]
basepython = python2.7
changedir = {toxinidir}/system_tests
commands =
nox {posargs}
deps =
{[testenv]deps}
nox-automation
gapic-google-cloud-pubsub-v1==0.15.0
passenv =
SKIP_APP_ENGINE_SYSTEM_TEST
CLOUD_SDK_ROOT
[testenv:docgen]
basepython = python3.6
deps =
{[testenv]deps}
sphinx
setenv =
SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance
commands =
rm -r docs/reference
sphinx-apidoc --output-dir docs/reference --separate --module-first google
[testenv:docs]
basepython = python3.6
deps =
sphinx
-r{toxinidir}/docs/requirements-docs.txt
commands = make -C docs html
[testenv:lint]
basepython = python3.5
commands =
python setup.py check --metadata --restructuredtext --strict
flake8 \
--import-order-style=google \
--application-import-names="google,tests,system_tests" \
google tests
gcp-devrel-py-tools run-pylint \
--config pylint.config.py \
--library-filesets google \
--test-filesets tests system_tests
deps =
flake8
flake8-import-order
pylint
docutils
gcp-devrel-py-tools