DR695H | 5fa0146 | 2017-02-15 18:21:12 -0500 | [diff] [blame] | 1 | [tox] |
colvert | 3c8dc1e | 2019-10-08 21:28:54 +0200 | [diff] [blame] | 2 | envlist = py27,pep8,pylint,py3 |
| 3 | distdir = {toxinidir}/dist |
umry8364 | d4af56d | 2019-08-28 12:06:30 +0200 | [diff] [blame] | 4 | modules = |
| 5 | ONAPLibrary |
| 6 | vcpeutils |
DR695H | 5fa0146 | 2017-02-15 18:21:12 -0500 | [diff] [blame] | 7 | |
| 8 | [testenv] |
umry8364 | d4af56d | 2019-08-28 12:06:30 +0200 | [diff] [blame] | 9 | deps = |
| 10 | -r{toxinidir}/requirements.txt |
| 11 | -r{toxinidir}/test-requirements.txt |
DR695H | f5df8b7 | 2019-09-13 11:13:53 -0400 | [diff] [blame] | 12 | install_command = pip install {opts} {packages} |
umry8364 | d4af56d | 2019-08-28 12:06:30 +0200 | [diff] [blame] | 13 | |
| 14 | [testenv:pep8] |
| 15 | basepython = python3 |
| 16 | changedir = {toxinidir} |
| 17 | commands = |
| 18 | flake8 --max-line-length 120 {[tox]modules} |
| 19 | |
| 20 | [testenv:pylint] |
| 21 | basepython = python3 |
| 22 | deps = |
| 23 | pyflakes |
| 24 | pylint |
| 25 | commands = |
| 26 | pylint -f parseable --ignore-imports=y --disable=locally-disabled --max-line-length 120 --exit-zero -ry {[tox]modules} |
| 27 | |
| 28 | [testenv:py3] |
| 29 | basepython = python3 |
| 30 | commands = nosetests --with-xunit \ |
| 31 | --all-modules \ |
| 32 | --with-coverage \ |
| 33 | --cover-tests \ |
colvert | 3c8dc1e | 2019-10-08 21:28:54 +0200 | [diff] [blame] | 34 | --cover-package=ONAPLibrary,vcpeutils \ |
umry8364 | d4af56d | 2019-08-28 12:06:30 +0200 | [diff] [blame] | 35 | --cover-xml \ |
| 36 | --cover-html \ |
| 37 | tests |
| 38 | |
| 39 | [testenv:py27] |
| 40 | basepython = python2.7 |
umry8364 | b2e7c2d | 2019-08-29 15:32:05 +0200 | [diff] [blame] | 41 | commands = |
| 42 | nosetests --all-modules tests |