-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
30 lines (27 loc) · 840 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
25
26
27
28
29
30
[tox]
envlist = py27, py34, py35, py36, pypy, pypy3, cover, lint
[testenv]
deps = -r{toxinidir}/req/test.txt
setenv = COVERAGE_FILE={toxworkdir}/coverage.tmp
commands =
coverage run \
--rcfile {toxinidir}/coveragerc \
--append \
--module py.test \
{toxinidir}/src/test.py
[testenv:cover]
skip_install = true
setenv = COVERAGE_FILE={toxworkdir}/coverage
commands = coverage combine \
--rcfile {toxinidir}/coveragerc \
{toxworkdir}/coverage.tmp
coverage html \
--rcfile {toxinidir}/coveragerc \
--directory {toxinidir}/coverage
[testenv:lint]
deps = -r{toxinidir}/req/lint.txt
commands = flake8 --ignore=D203 \
{toxinidir}/setup.py \
{toxinidir}/doc/conf.py \
{toxinidir}/src/flake8_ownership.py \
{toxinidir}/src/test.py