2 envlist = docs,pep8,pylint,yamllint,py35,py27,perm,cover
7 -c{toxinidir}/upper-constraints.txt
8 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike
9 -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
11 install_command = pip install {opts} {packages}
12 commands = nosetests --with-xunit \
15 --cover-package=functest \
21 basepython = python2.7
22 commands = sphinx-build -W -b html api/ api/_build
25 basepython = python2.7
29 basepython = python2.7
30 whitelist_externals = bash
36 functest.opnfv_tests.sdn.odl
37 functest.tests.unit.ci.test_tier_handler
38 functest.tests.unit.ci.test_tier_builder
39 functest.tests.unit.core
40 functest.tests.unit.energy
41 functest.tests.unit.odl
42 functest.tests.unit.utils.test_decorators
43 functest.utils.decorators
46 pylint -f parseable --disable=locally-disabled functest | \
47 tee pylint.out | sed -ne '/Raw metrics/,//p'"
48 pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
51 basepython = python2.7
56 functest/opnfv_tests/vnf
58 yamllint -s {[testenv:yamllint]files}
62 functest/tests/unit/ci
63 functest/tests/unit/cli
64 functest/tests/unit/core
65 functest/tests/unit/energy
66 functest/tests/unit/odl
67 functest/tests/unit/utils
68 commands = nosetests {[testenv:py35]dirs}
71 basepython = python2.7
73 functest/tests/unit/core
74 functest/tests/unit/energy
75 functest/tests/unit/odl
76 functest/tests/unit/utils/test_decorators.py
77 commands = nosetests --with-coverage --cover-tests \
78 --cover-package functest.core \
79 --cover-package functest.energy \
80 --cover-package functest.opnfv_tests.sdn.odl \
81 --cover-package functest.tests.unit \
82 --cover-package functest.utils.decorators \
83 --cover-min-percentage 100 {[testenv:cover]dirs}
86 basepython = python2.7
87 whitelist_externals = bash
88 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
91 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
92 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
94 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"