forked from nokia/crl-devutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (46 loc) · 1.12 KB
/
tox.ini
File metadata and controls
53 lines (46 loc) · 1.12 KB
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
# Copyright (C) 2019, Nokia
[tox]
envlist = py27, py36, docs, pylint
[base]
deps =
mock
pytest
pytest-cov
pytest-flakes
pytest-pep8
fixtureresources
[testenv]
setenv =
COVERAGE_FILE = .coverage{envname}
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 = {[base]deps}
[pytest]
addopts = --pep8 --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
{[base]deps}
commands = pylint {posargs: --reports=n --rcfile={toxinidir}/.pylintrc \
{toxinidir}/src/crl {toxinidir}/tests}
[testenv:docs]
changedir={toxinidir}
deps =
sphinx-invoke
sphinxcontrib-napoleon
commands =
crl create_docs -v
[testenv:test]
changedir={toxinidir}
deps={[testenv:docs]deps}
commands=
crl test --no-virtualenv {posargs}