-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
48 lines (42 loc) · 1.05 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
[tox]
envlist = coverage-clean, manifest, docs, py35, py27, coverage-report, rst-lint
[testenv]
commands = coverage run -p -m pytest --durations=20 tests {posargs}
deps=
coverage
pytest
whitelist_externals =
/bin/cat
/bin/cp
/bin/mkdir
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx_rtd_theme
commands =
mkdir -p {envtmpdir}
cp -r source {envtmpdir}/source
sphinx-build -W -b html -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/html
sphinx-build -W -b coverage -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/coverage
cat {envtmpdir}/build/coverage/c.txt
cat {envtmpdir}/build/coverage/python.txt
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:manifest]
commands = check-manifest
deps = check-manifest
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:rst-lint]
commands = rst-lint README.rst
skip_install = true
deps =
restructuredtext_lint
pygments