forked from nokia/crl-remotescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
72 lines (62 loc) · 1.46 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
# Copyright (C) 2019, Nokia
[tox]
envlist = py27, docs, pylint
[base]
deps=
pytest
pytest-cov
pytest-pep8
mock
fixtureresources
[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/remotescript \
{envsitepackagesdir}/crl/remotescript {toxinidir}/tests}
deps = {[base]deps}
[pytest]
addopts = --pep8 --cov-report xml
pep8ignore =
E501 line too long
E241 multiple spaces after ':'
E402 module level import not at top of file
norecursedirs = bin lib lib64 include
[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]
basepython = python2.7
changedir = {toxinidir}
deps =
crl.devutils
commands =
crl create_docs -v
[testenv:robotdocs]
basepython = python2.7
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
crl.remotescript
commands=
pybot --loglevel TRACE --exclude skip --exclude skip {posargs} \
{toxinidir}/robottests