Skip to content

Commit 6ed5943

Browse files
committed
Passing through COVERALLS_REPO_TOKEN to tox coveralls env.
Also re-factoring the tox config a little bit to reuse a base passenv rather than passing around the system-tests passenv everywhere.
1 parent f348615 commit 6ed5943

1 file changed

Lines changed: 24 additions & 11 deletions

File tree

tox.ini

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ envlist =
55
[testing]
66
deps =
77
pytest
8+
passenv =
9+
CI_*
10+
CIRCLE*
11+
GOOGLE_*
12+
TRAVIS*
813
localdeps =
914
pip install --upgrade \
1015
{toxinidir}/core \
@@ -130,7 +135,8 @@ skip_install =
130135
py34: True
131136
py35: True
132137
cover: True
133-
passenv = CI_* CIRCLE* TRAVIS* GOOGLE_CLOUD_*
138+
passenv =
139+
{[testing]passenv}
134140

135141
[testenv:cover]
136142
commands =
@@ -157,7 +163,9 @@ ignore_errors = True
157163
deps =
158164
{[testenv:umbrella-cover]deps}
159165
coveralls
160-
passenv = {[testenv:system-tests]passenv}
166+
passenv =
167+
{[testing]passenv}
168+
COVERALLS_REPO_TOKEN
161169

162170
[testenv:json-docs]
163171
basepython =
@@ -190,7 +198,10 @@ deps =
190198
{[testing]deps}
191199
Sphinx
192200
sphinx_rtd_theme
193-
passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS
201+
passenv =
202+
{[testing]passenv}
203+
SPHINX_RELEASE
204+
READTHEDOCS
194205

195206
[testenv:docs-doc2dash]
196207
basepython = {[testenv:docs]basepython}
@@ -226,7 +237,8 @@ deps =
226237
{[testing]deps}
227238
pycodestyle >= 2.1.0
228239
pylint >= 1.6.4
229-
passenv = {[testenv:system-tests]passenv}
240+
passenv =
241+
{[testing]passenv}
230242

231243
[testenv:system-tests]
232244
basepython =
@@ -236,7 +248,9 @@ commands =
236248
python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
237249
deps =
238250
{[testing]deps}
239-
passenv = CI_* CIRCLE* GOOGLE_* TRAVIS* encrypted_*
251+
passenv =
252+
{[testing]passenv}
253+
encrypted_*
240254

241255
[testenv:system-tests3]
242256
basepython =
@@ -246,36 +260,35 @@ commands =
246260
python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
247261
deps =
248262
{[testing]deps}
249-
passenv = {[testenv:system-tests]passenv}
263+
passenv =
264+
{[testenv:system-tests]passenv}
250265

251266
[emulator]
252267
deps =
253268
{[testing]deps}
254269
psutil
255270
setenv =
256271
GOOGLE_CLOUD_NO_PRINT=true
257-
passenv =
258-
GOOGLE_CLOUD_DISABLE_GRPC
259272
emulatorcmd =
260273
python {toxinidir}/system_tests/run_emulator.py
261274

262275
[testenv:datastore-emulator]
263276
commands =
264277
{[emulator]emulatorcmd} --package=datastore
265278
setenv = {[emulator]setenv}
266-
passenv = {[emulator]passenv}
279+
passenv = {[testing]passenv}
267280
deps = {[emulator]deps}
268281

269282
[testenv:pubsub-emulator]
270283
commands =
271284
{[emulator]emulatorcmd} --package=pubsub
272285
setenv = {[emulator]setenv}
273-
passenv = {[emulator]passenv}
286+
passenv = {[testing]passenv}
274287
deps = {[emulator]deps}
275288

276289
[testenv:bigtable-emulator]
277290
commands =
278291
{[emulator]emulatorcmd} --package=bigtable
279292
setenv = {[emulator]setenv}
280-
passenv = {[emulator]passenv}
293+
passenv = {[testing]passenv}
281294
deps = {[emulator]deps}

0 commit comments

Comments
 (0)