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
139 lines (125 loc) · 2.86 KB
/
tox.ini
File metadata and controls
139 lines (125 loc) · 2.86 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
[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
[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: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
[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 --build-root _build
deps =
{[testenv]deps}
Sphinx
sphinx_rtd_theme
passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS
[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 =
{[testenv]deps}
pycodestyle
pylint >= 1.6.4
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 =
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}