forked from googleapis/google-cloud-python-happybase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
85 lines (76 loc) · 1.72 KB
/
tox.ini
File metadata and controls
85 lines (76 loc) · 1.72 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
[tox]
envlist =
py27,py34,py35,cover,docs,lint
[testing]
deps =
pytest
mock
covercmd =
py.test --quiet \
--cov=google.cloud.happybase \
--cov=unit_tests \
--cov-config {toxinidir}/.coveragerc \
unit_tests
[testenv]
commands =
py.test --quiet {posargs} unit_tests
deps =
{[testing]deps}
[testenv:cover]
basepython =
python2.7
commands =
{[testing]covercmd}
deps =
{[testenv]deps}
coverage
pytest-cov
[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{[testing]covercmd}
coveralls
ignore_errors = True
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
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
verbose = 1
[testenv:lint]
basepython =
python2.7
commands =
python {toxinidir}/scripts/pycodestyle_on_repo.py
python {toxinidir}/scripts/run_pylint.py
deps =
{[testing]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 {posargs}
passenv = GOOGLE_* TRAVIS* encrypted_*
[testenv:system-tests3]
basepython =
python3.4
commands =
python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
passenv = {[testenv:system-tests]passenv}