-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
29 lines (26 loc) · 836 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
[tox]
envlist = py{39}, style
[testenv]
passenv = SSL_CERT_FILE CI TRAVIS* APPVEYOR* CODECOV*
setenv = PYTHONPATH=bdcalculator
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -r requirements.txt
-r test/requirements.txt
commands = pytest {posargs:-vv --cov-report term-missing --cov=bdcalculator/ --doctest-modules}
[testenv:coverage]
passenv = {[testenv]passenv}
setenv = COVERAGE_FILE={toxworkdir}/.coverage
basepython = python
skip_install = True
deps = coverage
commands = coverage combine
coverage report -i -m
coverage xml -i -o "{toxworkdir}/coverage.xml"
coverage html -i -d "{toxworkdir}/coverage"
[testenv:style]
basepython = python3
skip_install = True
deps = flake8
flake8-import-order
commands = flake8 {posargs:bdcalculator test setup.py}