aboutsummaryrefslogtreecommitdiff
blob: 350c7f68473dde9832a0edfdf3985ed6b778f68e (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
44
45
46
47
48
49
[tox]
envlist = py36, py37, coverage-report
[testenv]
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

# test against snakeoil/pkgcore git
[testenv:dev]
deps =
	-rrequirements/dev.txt
	-rrequirements/tox.txt
commands =
	coverage run -p -m pytest {posargs:-v}

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