forked from spdx/tools-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
24 lines (22 loc) · 924 Bytes
/
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
[tox]
envlist =
py{27,35,36,37,py,py3}
skipsdist = True
[testenv]
commands =
{envbindir}/python -m pip install '{toxinidir}[format]'
{envbindir}/coverage run --rcfile={toxinidir}/.coveragerc -m unittest discover -s tests
{envbindir}/coverage report --rcfile={toxinidir}/.coveragerc --show-missing
{envbindir}/coverage html --directory={envtmpdir}/htmlcov --rcfile={toxinidir}/.coveragerc {posargs}
deps =
coverage
xmltodict
[testenv:coverage]
setenv =
COVERAGE_DEBUG_FILE={envtmpdir}/coverage-debug
COVERAGE_FILE={envtmpdir}/coverage-data
commands =
{envbindir}/python -m pip install '{toxinidir}[format]'
{envbindir}/coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial jsonschema
{envbindir}/coverage report --rcfile={toxinidir}/.coveragerc --show-missing
{envbindir}/coverage html --directory={envtmpdir}/htmlcov --rcfile={toxinidir}/.coveragerc {posargs}