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
35 functest.opnfv_tests.openstack.rally
36 functest.opnfv_tests.openstack.refstack_client
37 functest.opnfv_tests.openstack.snaps
38 functest.opnfv_tests.openstack.tempest
39 functest.opnfv_tests.openstack.vping
40 functest.opnfv_tests.sdn.odl
41 functest.opnfv_tests.vnf.router
42 functest.tests.unit.ci
43 functest.tests.unit.cli
44 functest.tests.unit.odl
45 functest.tests.unit.openstack.rally
46 functest.tests.unit.openstack.refstack_client
47 functest.tests.unit.openstack.snaps
48 functest.tests.unit.openstack.tempest
49 functest.tests.unit.openstack.vping
50 functest.tests.unit.vnf.router
51 functest.tests.unit.utils
53 functest.utils.constants
55 functest.utils.functest_utils
58 pylint -f parseable --ignore-imports=y --disable=locally-disabled functest | \
59 tee pylint.out | sed -ne '/Raw metrics/,//p'"
60 pylint --reports=n --errors-only functest
61 pylint --disable=locally-disabled --ignore-imports=y --reports=n {[testenv:pylint]modules}
64 basepython = python2.7
69 functest/opnfv_tests/vnf
71 yamllint -s {[testenv:yamllint]files}
75 functest/tests/unit/ci
76 functest/tests/unit/cli
77 functest/tests/unit/odl
78 functest/tests/unit/utils
79 commands = nosetests {[testenv:py35]dirs}
82 basepython = python2.7
84 functest/tests/unit/ci
85 functest/tests/unit/odl
86 commands = nosetests --with-coverage --cover-tests \
87 --cover-package functest.ci.check_deployment \
88 --cover-package functest.opnfv_tests.sdn.odl \
89 --cover-package functest.tests.unit \
90 --cover-min-percentage 100 {[testenv:cover]dirs}
93 basepython = python2.7
94 whitelist_externals = bash
95 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
98 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
99 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
101 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"