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.openstack.rally
38 functest.opnfv_tests.openstack.refstack_client
39 functest.opnfv_tests.openstack.snaps
40 functest.opnfv_tests.openstack.vping
41 functest.opnfv_tests.sdn.odl
42 functest.opnfv_tests.vnf.router
43 functest.tests.unit.ci
44 functest.tests.unit.cli
45 functest.tests.unit.core
46 functest.tests.unit.energy
47 functest.tests.unit.odl
48 functest.tests.unit.openstack.rally
49 functest.tests.unit.openstack.refstack_client
50 functest.tests.unit.openstack.snaps
51 functest.tests.unit.openstack.vping
52 functest.tests.unit.vnf.router
53 functest.tests.unit.utils.test_decorators
55 functest.utils.decorators
56 functest.utils.constants
58 functest.utils.functest_utils
61 pylint -f parseable --disable=locally-disabled functest | \
62 tee pylint.out | sed -ne '/Raw metrics/,//p'"
63 pylint --reports=n --errors-only functest
64 pylint --disable=locally-disabled --ignore-imports=y --reports=n {[testenv:pylint]modules}
67 basepython = python2.7
72 functest/opnfv_tests/vnf
74 yamllint -s {[testenv:yamllint]files}
78 functest/tests/unit/ci
79 functest/tests/unit/cli
80 functest/tests/unit/core
81 functest/tests/unit/energy
82 functest/tests/unit/odl
83 functest/tests/unit/utils
84 commands = nosetests {[testenv:py35]dirs}
87 basepython = python2.7
89 functest/tests/unit/ci
90 functest/tests/unit/core
91 functest/tests/unit/energy
92 functest/tests/unit/odl
93 functest/tests/unit/utils/test_decorators.py
94 commands = nosetests --with-coverage --cover-tests \
95 --cover-package functest.ci.check_deployment \
96 --cover-package functest.ci.tier_builder \
97 --cover-package functest.ci.tier_handler \
98 --cover-package functest.core \
99 --cover-package functest.energy \
100 --cover-package functest.opnfv_tests.sdn.odl \
101 --cover-package functest.tests.unit \
102 --cover-package functest.utils.decorators \
103 --cover-min-percentage 100 {[testenv:cover]dirs}
106 basepython = python2.7
107 whitelist_externals = bash
108 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
111 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
112 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
114 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"