-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
38 lines (34 loc) · 791 Bytes
/
tox.ini
File metadata and controls
38 lines (34 loc) · 791 Bytes
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
[tox]
envlist = py38, py39, coverage-report
[testenv]
deps =
-rrequirements/tox.txt
install_command = "{toxinidir}"/requirements/pip.sh {packages}
commands =
coverage run -p -m pytest {posargs:-v} "{toxinidir}"/test
# generate coverage report
[testenv:coverage-report]
skip_install = true
deps = coverage
commands =
coverage combine
coverage report
# build dist files
[testenv:dist]
skip_install = true
deps =
-rrequirements/wheel.txt
commands =
python setup.py sdist
python setup.py bdist_wheel
# test against snakeoil git
[testenv:dev]
deps =
-rrequirements/dev.txt
-rrequirements/tox.txt
commands =
coverage run -p -m pytest {posargs:-v} "{toxinidir}"/test
# stub for travis-ci
[testenv:travis]
commands =
coverage run -p -m pytest {posargs:-v} "{toxinidir}"/test