forked from GoogleCloudPlatform/python-docs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
139 lines (126 loc) · 3.08 KB
/
tox.ini
File metadata and controls
139 lines (126 loc) · 3.08 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
[tox]
skipsdist = True
envlist = pep8, py27, py34, gae
[testenv]
passenv = *
basepython = python2.7
deps =
-rrequirements.txt
examples =
bigquery/api
blog/introduction_to_data_models_in_cloud_datastore
cloud_logging/api
compute/api
compute/autoscaler/demo
datastore/api
managed_vms/cloudsql
managed_vms/datastore
managed_vms/disk
managed_vms/extending_runtime
managed_vms/hello_world
managed_vms/hello_world_compat
managed_vms/memcache
managed_vms/pubsub
managed_vms/static_files
managed_vms/storage
monitoring/api
storage/api
setenv =
PYTHONPATH=.
[testenv:pep8]
deps =
flake8
flake8-import-order
commands =
flake8 --builtin=gettext --max-complexity=10 --import-order-style=google {posargs}
[testenv:py27]
deps =
{[testenv]deps}
-rrequirements-py27-dev.txt
commands =
python scripts/run-tests.py {posargs:{[testenv]examples}}
[testenv:py27-all]
deps =
{[testenv:py27]deps}
commands =
python scripts/run-tests.py \
--junit \
--run-slow \
{posargs:{[testenv]examples}}
[testenv:py34]
basepython = python3.4
deps =
{[testenv]deps}
-rrequirements-py34-dev.txt
commands =
python scripts/run-tests.py {posargs:{[testenv]examples}}
[testenv:py34-all]
basepython = python3.4
deps =
{[testenv:py34]deps}
commands =
python scripts/run-tests.py \
--junit \
--run-slow \
{posargs:{[testenv]examples}}
[testenv:gae]
deps =
{[testenv]deps}
-rrequirements-py27-dev.txt
examples =
appengine/app_identity/signing
appengine/bigquery
appengine/blobstore
appengine/cloudsql
appengine/images
appengine/localtesting
appengine/logging/reading_logs
appengine/logging/writing_logs
appengine/mailgun
appengine/multitenancy
appengine/ndb/modeling
appengine/ndb/overview
appengine/ndb/transactions
appengine/storage
commands =
# Create a lib directory, otherwise, the vendor library will explode.
mkdir -p lib
python scripts/run-tests.py {posargs:{[testenv:gae]examples}}
setenv =
PYTHONPATH=.:{env:GAE_PYTHONPATH:}
whitelist_externals = mkdir
[testenv:gae-all]
deps =
{[testenv:gae]deps}
commands =
# Create a lib directory, otherwise, the vendor library will explode.
mkdir -p lib
python scripts/run-tests.py \
--junit \
--run-slow \
{posargs:{[testenv:gae]examples}}
setenv =
PYTHONPATH=.:{env:GAE_PYTHONPATH:}
whitelist_externals = mkdir
[testenv:reqcheck]
commands =
bash -c "find . -name requirements\*.txt |\
xargs -P 4 -n 1 gcp-python-repo-tools check-requirements"
whitelist_externals =
bash
find
xargs
gcp-python-repo-tools
[testenv:requpdate]
commands =
bash -c "find . -name requirements\*.txt |\
xargs -P 4 -n 1 gcp-python-repo-tools update-requirements"
whitelist_externals =
bash
find
xargs
gcp-python-repo-tools
[flake8]
exclude=container_engine/django_tutorial/polls/migrations/*
[pytest]
addopts = -x --no-success-flaky-report --cov --cov-config .coveragerc --cov-append --cov-report=