forked from GoogleCloudPlatform/python-docs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
62 lines (57 loc) · 1.09 KB
/
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
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
[tox]
skipsdist = True
envlist = gae, py27, py34, pep8
[testenv]
passenv = PYTHONPATH GOOGLE_* GCLOUD_* TEST_* TRAVIS*
basepython = python2.7
deps =
pyyaml
google-api-python-client
flask
mock
nose
coverage
webtest
nose-exclude
coverargs =
--with-coverage
--cover-tests
--cover-branches
--cover-inclusive
[testenv:gae]
deps =
{[testenv]deps}
nosegae
commands =
nosetests --with-gae \
--gae-app=tests/resources/app.yaml \
--logging-level=INFO \
{[testenv]coverargs} \
{posargs:appengine}
setenv =
PYTHONPATH={env:GAE_PYTHONPATH:}
[testenv:py27]
deps =
{[testenv]deps}
gcloud
commands =
nosetests \
--exclude-dir=appengine \
{[testenv]coverargs} \
{posargs}
[testenv:py34]
basepython = python3.4
deps =
{[testenv]deps}
gcloud
commands =
nosetests \
--exclude-dir=appengine \
{[testenv]coverargs} \
{posargs}
[testenv:pep8]
deps =
flake8
flake8-import-order
commands =
flake8 --max-complexity=10 --import-order-style=google {posargs}