-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
tox.ini
84 lines (75 loc) · 1.91 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[tox]
envlist =
py26,py27,py33,py34,cover,docs,lint
[testenv]
install_command =
{toxinidir}/scripts/custom_pip_install.sh {opts} {packages}
commands =
nosetests
deps =
nose
unittest2
protobuf==3.0.0-alpha-1
[testenv:cover]
basepython =
python2.7
commands =
{toxinidir}/scripts/cover.sh --cover-min-percentage=100
deps =
{[testenv]deps}
coverage
[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{toxinidir}/scripts/cover.sh
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
deps =
Sphinx
passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS LOCAL_RTD
[testenv:docs-rtd]
setenv =
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
deps = {[testenv:docs]deps}
passenv = {[testenv:docs]passenv}
[pep8]
exclude = gcloud/datastore/_datastore_v1_pb2.py,docs/conf.py
verbose = 1
[testenv:lint]
basepython =
python2.7
commands =
{toxinidir}/scripts/pep8_on_repo.sh
python run_pylint.py
deps =
pep8
-ehg+https://bitbucket.org/logilab/pylint@33e334be064c#egg=pylint
logilab-common<=0.63.0 # Hack for pylint upstream
unittest2
protobuf==3.0.0-alpha-1
passenv = {[testenv:system-tests]passenv}
[testenv:system-tests]
basepython =
python2.7
commands =
{toxinidir}/scripts/run_system_tests.sh
passenv = GOOGLE_* GCLOUD_* TRAVIS* encrypted_*
[testenv:system-tests3]
basepython =
python3.4
commands =
{toxinidir}/scripts/run_system_tests.sh
passenv = {[testenv:system-tests]passenv}