-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
80 lines (71 loc) · 1.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright (C) 2019-2024, Nokia
[tox]
envlist = py{27,36,37,38,39,310}, docs, pylint, pylint3
[base]
deps =
mock
pytest-cov
fixtureresources
[base2]
deps =
{[base]deps}
pytest == 4.6
pytest-flake8 == 1.0.7
more-itertools <= 5.0.0
[base3]
deps =
{[base]deps}
pytest == 7.0.1
pytest-flake8 == 1.1.1
flake8 == 4.0.1
[testenv]
setenv =
COVERAGE_FILE = .coverage{envname}
PIP_TIMEOUT = 60
passenv = COVERAGE_FILE
changedir = {envtmpdir}
commands =
{posargs:py.test -v --junitxml=junit.xml \
--cov-config {toxinidir}/.coveragerc \
--cov={envsitepackagesdir}/crl/devutils \
{envsitepackagesdir}/crl/devutils {toxinidir}/tests}
deps =
py27: {[base2]deps}
py{36,37,38,39,310}: {[base3]deps}
[pytest]
addopts = --flake8 --cov-report xml
norecursedirs = bin lib include
changedir={toxinidir}
filterwarnings =
ignore:cannot collect .test. because it is not a function
[testenv:pylint]
basepython = python2.7
deps =
pylint < 2.0
lazy-object-proxy == 1.6.0
{[base2]deps}
commands = pylint {posargs: --reports=n --rcfile={toxinidir}/.pylintrc \
{toxinidir}/src/crl {toxinidir}/tests}
[testenv:pylint3]
basepython = python3.10
deps =
pylint == 2.5
{[base3]deps}
commands = {[testenv:pylint]commands}
[testenv:docs]
basepython=python3.10
changedir={toxinidir}
deps =
sphinx-invoke
sphinxcontrib-napoleon
commands =
crl create_docs -v
[testenv:test]
basepython=python3.10
changedir={toxinidir}
deps={[testenv:docs]deps}
setenv=
{[testenv]setenv}
TOX_PARALLEL_NO_SPINNER=1
commands=
crl test --no-virtualenv --toxargs "--parallel auto" {posargs}