forked from googleapis/gax-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
61 lines (52 loc) · 1.9 KB
/
tox.ini
File metadata and controls
61 lines (52 loc) · 1.9 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
[tox]
envlist = py27,py34,py35,pep8,pylint-errors,pylint-full
[tox:travis]
2.7 = py27,pep8,pylint-full,docs
3.4 = py34,pep8,pylint-full
3.5 = py35,pep8,pylint-full
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/src-gen/test
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
whitelist_externals = mkdir
protoc
commands = -mkdir src-gen
-{env:BREW_HOME}/bin/protoc --python_out=src-gen test/fixture.proto
-py.test --timeout=30 --cov-report html --cov-report=term --cov {toxinidir}/google
[testenv:pep8]
deps = flake8
commands = flake8 --max-complexity=10 google test --ignore=E501 --exclude=src-gen
[testenv:pylint-errors]
deps = pylint
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = pylint -f colorized -E google test --ignore=src-gen
[testenv:pylint-warnings]
deps = pylint
commands = pylint -f colorized -d all -e W -r n google test --ignore=src-gen
[testenv:pylint-full]
deps = pylint
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = pylint -f colorized -e E,W,R -d fixme,locally-disabled google test --ignore=src-gen
[testenv:devenv]
commands =
envdir = {toxworkdir}/develop
basepython = python2.7
usedevelop = True
deps= -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:docs]
basepython = python2.7
commands =
python -c "import shutil; shutil.rmtree('docs/_build', ignore_errors=True)"
python -c "import shutil; shutil.rmtree('docs/generated', ignore_errors=True)"
python -c "import shutil; shutil.rmtree('docs/_static', ignore_errors=True)"
python -c "import os; os.makedirs('docs/_static')"
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b latex -D language=en -d _build/doctrees docs _build/latex
deps =
-r{toxinidir}/requirements.txt
Sphinx
sphinx_rtd_theme