forked from nokia/crl-examplelib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (54 loc) · 1.25 KB
/
tox.ini
File metadata and controls
64 lines (54 loc) · 1.25 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
54
55
56
57
58
59
60
61
62
63
64
# Copyright (C) 2019, Nokia
[tox]
envlist = py27, py36, pylint
[testenv]
setenv =
COVERAGE_FILE = .coverage{envname}
passenv = COVERAGE_FILE
changedir = {envtmpdir}
commands = {posargs:py.test \
--junitxml=junit.xml \
--cov-config {toxinidir}/.coveragerc \
--cov={envsitepackagesdir}/crl/examplelib \
{envsitepackagesdir}/crl/examplelib {toxinidir}/tests}
deps =
mock
pytest
pytest-cov
pytest-flakes
pytest-pep8
[pytest]
addopts = --pep8 --flakes --cov-report xml
flakes-ignore =
test_*.py UnusedImport
test_*.py RedefinedWhileUnused
norecursedirs = bin lib include
[testenv:pylint]
deps =
pylint < 2.0
{[testenv]deps}
commands = pylint {posargs: --rcfile={toxinidir}/.pylintrc \
{toxinidir}/src/crl {toxinidir}/tests }
[testenv:docs]
changedir = {toxinidir}
deps=
crl.devutils
commands=
crl create_docs -v
[testenv:robotdocs]
changedir = {toxinidir}
deps=
crl.devutils
commands=
crl create_robotdocs -v
[testenv:test]
changedir = {toxinidir}
deps=
{[testenv:docs]deps}
commands=
crl test --no-virtualenv {posargs}
[testenv:robottests]
deps=
robotframework
commands=
robot --loglevel TRACE {toxinidir}/robottests {posargs}