forked from GoogleCloudPlatform/cloud-pubsub-samples-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (30 loc) · 945 Bytes
/
tox.ini
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
[tox]
skipsdist = True
envlist = {py27}-{nosetest,pep8,grpc}
[testenv]
passenv = PYTHONPATH GCLOUD_* TEST_* TRAVIS*
setenv =
GOOGLE_APPLICATION_CREDENTIALS = {toxinidir}/client-secret.json
PYTHONPATH = {toxinidir}/cmdline-pull
basepython =
py27: python2.7
deps =
google-api-python-client
pep8: flake8
pep8: flake8-import-order
nosetest: mock
nosetest: nose
nosetest: httplib2
changedir =
grpc: grpc
commands =
# TOOD: decrease the max allowed complexity to 10 after adding tests
pep8: flake8 --max-complexity=13 --exclude=lib,bin,local \
pep8: --import-order-style=google \
pep8: --application-import-names=constants,pubsub_utils
nosetest: nosetests cmdline-pull
nosetest: nosetests appengine-push/test_deploy.py
grpc: pip install -r requirements.txt
grpc: python pubsub_sample.py cloud-pubsub-sample-test
[flake8]
application-import-names = constants,pubsub_utils