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
130 lines (118 loc) · 2.82 KB
/
tox.ini
File metadata and controls
130 lines (118 loc) · 2.82 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
[tox]
envlist =
py26,py27,py34,py35,cover,docs,lint
[testenv]
commands =
nosetests
deps =
nose
nose-exclude
unittest2
setenv =
PYTHONPATH = {toxinidir}/_testing
covercmd =
nosetests \
--exclude-dir=system_tests \
--with-coverage \
--cover-package=gcloud \
--cover-erase \
--cover-tests \
--cover-branches \
--nocapture
[testenv:py27]
basepython =
python2.7
commands =
pip install gcloud[grpc]
nosetests
setenv =
PYTHONPATH =
[testenv:cover]
basepython =
python2.7
commands =
pip install gcloud[grpc]
{[testenv]covercmd} --cover-min-percentage=100
deps =
{[testenv]deps}
coverage
[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{[testenv]covercmd}
coveralls
deps =
{[testenv:cover]deps}
coveralls
passenv = {[testenv:system-tests]passenv}
[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 =
Sphinx
sphinx_rtd_theme
passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS LOCAL_RTD
[testenv:docs-rtd]
setenv =
PYTHONPATH = {toxinidir}/_testing
LOCAL_RTD = True
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 = {[testenv:docs]deps}
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/pep8_on_repo.py
python {toxinidir}/scripts/run_pylint.py
deps =
pep8
pylint
unittest2
psutil
Sphinx
passenv = {[testenv:system-tests]passenv}
[testenv:system-tests]
basepython =
python2.7
commands =
pip install gcloud[grpc]
python {toxinidir}/system_tests/attempt_system_tests.py
setenv =
PYTHONPATH =
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}