summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/tox.ini
blob: f7276b448fc74e093be6d21bcb842cb41e9a27e6 (plain)
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
[tox]
envlist = py3,pep8,pylint,py27
modules =
  ONAPLibrary
  vcpeutils

[testenv]
usedevelop = True
deps =
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/test-requirements.txt

[testenv:pep8]
basepython = python3
changedir = {toxinidir}
commands =
  flake8 --max-line-length 120 {[tox]modules}
install_command = pip3 install {opts} {packages}

[testenv:pylint]
basepython = python3
deps =
    pyflakes
    pylint
commands =
    pylint -f parseable --ignore-imports=y --disable=locally-disabled --max-line-length 120 --exit-zero -ry {[tox]modules}
install_command = pip3 install {opts} {packages}

[testenv:py3]
basepython = python3
commands = nosetests --with-xunit \
  --all-modules \
  --with-coverage \
  --cover-tests \
  --cover-package=. \
  --cover-xml \
  --cover-html \
  tests
install_command = pip3 install {opts} {packages}

[testenv:py27]
basepython = python2.7
commands =
  nosetests --all-modules tests
install_command = pip install {opts} {packages}