forked from googleapis/google-cloud-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
185 lines (168 loc) · 3.81 KB
/
tox.ini
File metadata and controls
185 lines (168 loc) · 3.81 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[tox]
envlist =
py27,py34,py35,cover,docs,lint
[testing]
deps =
nose
nose-exclude
covercmd =
nosetests \
--exclude-dir=system_tests \
--with-coverage \
--cover-package=gcloud \
--cover-erase \
--cover-tests \
--cover-branches \
--nocapture
[grpc]
deps =
grpcio >= 1.0rc1
google-gax >= 0.12.3, < 0.13dev
gax-google-pubsub-v1 >= 0.8.0, < 0.9dev
grpc-google-pubsub-v1 >= 0.8.0, < 0.9dev
gax-google-logging-v2 >= 0.8.0, < 0.9dev
grpc-google-logging-v2 >= 0.8.0, < 0.9dev
[docs]
deps =
{[testenv]deps}
Sphinx
sphinx_rtd_theme
[testenv]
commands =
nosetests
deps =
{[testing]deps}
{[grpc]deps}
[testenv:py27-pandas]
basepython =
python2.7
deps =
{[testenv]deps}
pandas
[testenv:cover]
basepython =
python2.7
commands =
{[testing]covercmd} --cover-min-percentage=100
deps =
{[testenv]deps}
coverage
[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{[testing]covercmd}
coveralls
deps =
{[testenv:cover]deps}
coveralls
passenv = {[testenv:system-tests]passenv}
[testenv:codecov]
basepython =
{[testenv:cover]basepython}
passenv =
CI
TRAVIS_BUILD_ID
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_NUMBER
TRAVIS_PULL_REQUEST
TRAVIS_JOB_ID
TRAVIS_REPO_SLUG
TRAVIS_COMMIT
deps =
{[testenv:cover]deps}
codecov>=1.4.0
commands =
{[testenv:cover]commands}
codecov
setenv =
PYTHONPATH =
[testenv:docs]
basepython =
python2.7
commands =
python -c "import shutil; shutil.rmtree('docs/_build', ignore_errors=True)"
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
python {toxinidir}/scripts/verify_included_modules.py
deps =
{[testenv]deps}
{[docs]deps}
passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS LOCAL_RTD
[testenv:json-docs]
basepython =
python2.7
commands =
python -c "import shutil; shutil.rmtree('docs/_build/json', ignore_errors=True)"
{toxinidir}/scripts/update_json_docs.sh
deps =
parinx
pdoc
Sphinx
passenv =
TRAVIS_TAG
TRAVIS_BRANCH
TRAVIS_PULL_REQUEST
GH_OWNER
GH_OAUTH_TOKEN
GH_PROJECT_NAME
setenv =
PYTHONPATH = {toxinidir}/_testing
[testenv:docs-rtd]
basepython = {[testenv:docs]basepython}
commands =
python -c "import shutil; shutil.rmtree('docs/_build_rtd', ignore_errors=True)"
sphinx-build -W -b html -d docs/_build_rtd/doctrees docs docs/_build_rtd/html
python {toxinidir}/scripts/verify_included_modules.py
deps =
{[testing]deps}
{[docs]deps}
setenv =
PYTHONPATH = {toxinidir}/_testing
LOCAL_RTD = True
passenv = {[testenv:docs]passenv}
[pep8]
exclude = docs/conf.py,gcloud/bigtable/_generated*/*,gcloud/datastore/_generated/*
verbose = 1
[testenv:lint]
basepython =
python2.7
commands =
python {toxinidir}/scripts/pycodestyle_on_repo.py
python {toxinidir}/scripts/run_pylint.py
deps =
{[testing]deps}
pycodestyle
pylint >= 1.6.4
setenv =
PYTHONPATH = {toxinidir}/_testing
passenv = {[testenv:system-tests]passenv}
[testenv:system-tests]
basepython =
python2.7
commands =
python {toxinidir}/system_tests/attempt_system_tests.py
passenv = GOOGLE_* GCLOUD_* TRAVIS* encrypted_*
[testenv:system-tests3]
basepython =
python3.4
commands =
python {toxinidir}/system_tests/attempt_system_tests.py
passenv = {[testenv:system-tests]passenv}
[testenv:datastore-emulator]
basepython =
python2.7
commands =
python {toxinidir}/system_tests/run_emulator.py --package=datastore
setenv =
PYTHONPATH = {toxinidir}/_testing
GCLOUD_NO_PRINT=true
deps =
{[testenv]deps}
psutil
[testenv:pubsub-emulator]
basepython =
python2.7
commands =
python {toxinidir}/system_tests/run_emulator.py --package=pubsub
passenv = GCLOUD_*
deps = {[testenv:datastore-emulator]deps}