-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
38 lines (31 loc) · 1 KB
/
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
31
32
33
34
35
36
37
38
[tox]
envlist = begin,py36,py37,py38,py39,end
[testenv]
passenv = *
whitelist_externals =
pipenv
coverage
install_command = pipenv install --ignore-pipfile --skip-lock --deploy --dev {packages}
[testenv:begin]
commands = coverage erase
[testenv:py36]
basepython = python3.6
commands =
coverage run -p --source=. --omit=*tests/* --omit=*/setup.py --omit=.tox* -m unittest discover -s tests/
[testenv:py37]
basepython = python3.7
commands =
coverage run -p --source=. --omit=*tests/* --omit=*/setup.py --omit=.tox* -m unittest discover -s tests/
[testenv:py38]
basepython = python3.8
commands =
coverage run -p --source=. --omit=*tests/* --omit=*/setup.py --omit=.tox* -m unittest discover -s tests/
[testenv:py39]
basepython = python3.9
commands =
coverage run -p --source=. --omit=*tests/* --omit=*/setup.py --omit=.tox* -m unittest discover -s tests/
[testenv:end]
commands =
coverage combine
coverage report --omit='.tox/*' --omit=*/setup.py
coverage html --omit='.tox/*' --omit=*/setup.py