-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
84 lines (72 loc) · 1.37 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 =
py27
py34
py35
py36
py37
pypy
pypy3
flake8
mypy
yapf
sphinx
[testenv]
whitelist_externals =
sh
cp
rm
du
sphinx
sphinx-build
coverage
codecov
flake8
yapf
mypy
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements-dev.txt
git+https://github.com/crossbario/zlmdb
commands =
sh -c "cd examples && ./run.sh"
[testenv:flake8]
skip_install = True
deps =
flake8
commands =
flake8 --max-line-length=119 txaioetcd
[testenv:yapf]
description =
Run yapf style checks.
skip_install = True
deps =
yapf
commands =
yapf -rd --style=yapf.ini txaioetcd
[testenv:mypy]
description =
Run mypy type checks.
skip_install = True
deps =
mypy
commands=
mypy --ignore-missing-imports --config-file {toxinidir}/mypy.ini txaioetcd
[testenv:sphinx]
description =
Generate docs using Sphinx.
skip_install = False
deps =
sphinx
sphinx_rtd_theme
git+https://github.com/crossbario/zlmdb
commands =
# first test with all warnings fatal
# sphinx-build -nWT -b dummy ./docs ./docs/_build
# generate HTML output
sphinx-build -b html ./docs ./docs/_build
# move to HOME to preserve on Travis for upload to S3
-rm -rf {homedir}/txaioetcd-docs
cp -R ./docs/_build {homedir}/txaioetcd-docs
du -hs {homedir}/txaioetcd-docs