blob: 34e0b7e45e4067af5fb4bb83a306d87106345197 [file] [log] [blame]
DR695H5fa01462017-02-15 18:21:12 -05001[tox]
colvert3c8dc1e2019-10-08 21:28:54 +02002envlist = py27,pep8,pylint,py3
3distdir = {toxinidir}/dist
umry8364d4af56d2019-08-28 12:06:30 +02004modules =
5 ONAPLibrary
6 vcpeutils
DR695H5fa01462017-02-15 18:21:12 -05007
8[testenv]
umry8364d4af56d2019-08-28 12:06:30 +02009deps =
10 -r{toxinidir}/requirements.txt
11 -r{toxinidir}/test-requirements.txt
DR695Hf5df8b72019-09-13 11:13:53 -040012install_command = pip install {opts} {packages}
umry8364d4af56d2019-08-28 12:06:30 +020013
14[testenv:pep8]
15basepython = python3
16changedir = {toxinidir}
17commands =
18 flake8 --max-line-length 120 {[tox]modules}
19
20[testenv:pylint]
21basepython = python3
22deps =
23 pyflakes
24 pylint
25commands =
26 pylint -f parseable --ignore-imports=y --disable=locally-disabled --max-line-length 120 --exit-zero -ry {[tox]modules}
27
28[testenv:py3]
29basepython = python3
30commands = nosetests --with-xunit \
31 --all-modules \
32 --with-coverage \
33 --cover-tests \
colvert3c8dc1e2019-10-08 21:28:54 +020034 --cover-package=ONAPLibrary,vcpeutils \
umry8364d4af56d2019-08-28 12:06:30 +020035 --cover-xml \
36 --cover-html \
37 tests
38
39[testenv:py27]
40basepython = python2.7
umry8364b2e7c2d2019-08-29 15:32:05 +020041commands =
42 nosetests --all-modules tests