/
tox.ini
52 lines (48 loc) · 913 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[tox]
envlist =
clean
py38
report
pylint
[testenv]
deps =
docker
pytest
pytest-cov
pytest-rerunfailures
pytest-xdist
pytest-xdist[psutil]
depends =
{py38}: clean
report: py38
commands =
pytest --cov=cdrouter --cov-append --cov-report=term-missing --reruns 3 --reruns-delay 1 -n logical {posargs:tests}
passenv =
CDR_DOCKER_IMAGE
CDR_DOCKER_LICENSE
CDR_DOCKER_PULL
CDR_DOCKER_VOLUMES
CLOUDSHARK_URL
CLOUDSHARK_TOKEN
DOCKER_CERT_PATH
DOCKER_HOST
DOCKER_TLS_VERIFY
LOUNGE_EMAIL
LOUNGE_URL
LOUNGE_INSECURE
RUN_LOUNGE_TESTS
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:pylint]
deps =
{[testenv]deps}
pylint == 2.13.9
commands = pylint -rn -sn cdrouter tests