aboutsummaryrefslogtreecommitdiff
blob: 63422eed337ce00cf155267bf6b3af7efa26ec7b (plain)
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
[tox]
envlist = py36, py37, coverage-report
[testenv]
# force latest virtualenv/pip
download = true
install_command = "{toxinidir}"/requirements/pip.sh {packages}
deps =
	-rrequirements/tox.txt
commands =
	coverage run -p -m pytest {posargs:-v}

# generate coverage report
[testenv:coverage-report]
skip_install = true
deps = coverage
ignore_errors = true
commands =
	coverage combine
	coverage html
	coverage report

# build docs
[testenv:docs]
skip_install = true
deps =
	-rrequirements/docs.txt
commands =
	python setup.py build_man build_docs

# build dist files
[testenv:dist]
skip_install = true
deps =
	-rrequirements/docs.txt
	-rrequirements/wheel.txt
commands =
	python setup.py sdist
	python setup.py bdist_wheel

# stub for travis-ci
[testenv:travis]
commands =
	coverage run -p -m pytest {posargs:-v}