move the pip command to common section again
[testsuite/python-testing-utils.git] / robotframework-onap / tox.ini
1 [tox]
2 envlist = py3,pep8,pylint,py27
3 modules =
4   ONAPLibrary
5   vcpeutils
6
7 [testenv]
8 usedevelop = True
9 deps =
10   -r{toxinidir}/requirements.txt
11   -r{toxinidir}/test-requirements.txt
12 install_command = pip install {opts} {packages}
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 \
34   --cover-package=. \
35   --cover-xml \
36   --cover-html \
37   tests
38
39 [testenv:py27]
40 basepython = python2.7
41 commands =
42   nosetests --all-modules tests