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
37 functest.opnfv_tests.sdn.odl
38 functest.opnfv_tests.vnf.router
39 functest.tests.unit.ci
40 functest.tests.unit.cli
41 functest.tests.unit.core
42 functest.tests.unit.energy
43 functest.tests.unit.odl
44 functest.tests.unit.vnf.router
45 functest.tests.unit.utils.test_decorators
47 functest.utils.decorators
48 functest.utils.constants
50 functest.utils.functest_utils
53 pylint -f parseable --disable=locally-disabled functest | \
54 tee pylint.out | sed -ne '/Raw metrics/,//p'"
55 pylint --reports=n --errors-only functest
56 pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
59 basepython = python2.7
64 functest/opnfv_tests/vnf
66 yamllint -s {[testenv:yamllint]files}
70 functest/tests/unit/ci
71 functest/tests/unit/cli
72 functest/tests/unit/core
73 functest/tests/unit/energy
74 functest/tests/unit/odl
75 functest/tests/unit/utils
76 commands = nosetests {[testenv:py35]dirs}
79 basepython = python2.7
81 functest/tests/unit/ci
82 functest/tests/unit/core
83 functest/tests/unit/energy
84 functest/tests/unit/odl
85 functest/tests/unit/utils/test_decorators.py
86 commands = nosetests --with-coverage --cover-tests \
87 --cover-package functest.ci.check_deployment \
88 --cover-package functest.ci.tier_builder \
89 --cover-package functest.ci.tier_handler \
90 --cover-package functest.core \
91 --cover-package functest.energy \
92 --cover-package functest.opnfv_tests.sdn.odl \
93 --cover-package functest.tests.unit \
94 --cover-package functest.utils.decorators \
95 --cover-min-percentage 100 {[testenv:cover]dirs}
98 basepython = python2.7
99 whitelist_externals = bash
100 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
103 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
104 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
106 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"