2 envlist = docs,pep8,pylint,yamllint,bashate,py27,perm,cover
7 -c{toxinidir}/upper-constraints.txt
8 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master}
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 \
22 basepython = python2.7
25 --ignore-path api/build \
26 --ignore-path docs/build \
27 --ignore-path docs/_build \
30 sphinx-build -W -b html api/ api/build
31 sphinx-build -W -n -b html docs docs/build/html
32 sphinx-build -W -n -b linkcheck docs docs/_build/linkcheck
33 sphinx-build -W -n -b html -c docs/lfreleng docs docs/_build/html
36 basepython = python2.7
40 basepython = python2.7
41 whitelist_externals = bash
44 functest.opnfv_tests.openstack.cinder
45 functest.opnfv_tests.openstack.rally
46 functest.opnfv_tests.openstack.refstack
47 functest.opnfv_tests.openstack.snaps
48 functest.opnfv_tests.openstack.tempest
49 functest.opnfv_tests.openstack.vmtp
50 functest.opnfv_tests.openstack.vping
51 functest.opnfv_tests.sdn.odl
52 functest.opnfv_tests.vnf.router
53 functest.tests.unit.ci
54 functest.tests.unit.odl
55 functest.tests.unit.openstack.rally
56 functest.tests.unit.openstack.snaps
57 functest.tests.unit.openstack.tempest
58 functest.tests.unit.openstack.vmtp
59 functest.tests.unit.openstack.vping
60 functest.tests.unit.vnf.router
61 functest.tests.unit.utils
63 functest.utils.constants
65 functest.utils.functest_utils
70 --disable=locally-disabled functest | tee pylint.out"
71 pylint --reports=n --errors-only functest
72 pylint --disable=locally-disabled \
73 --disable=duplicate-code \
74 --ignore-imports=y --reports=n {[testenv:pylint]modules}
77 basepython = python2.7
83 functest/opnfv_tests/openstack/rally/blacklist.yaml
84 functest/opnfv_tests/openstack/rally/rally_jobs.yaml
85 functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.yaml
86 functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
87 functest/opnfv_tests/vnf
89 yamllint -s {[testenv:yamllint]files}
93 functest/tests/unit/ci
94 functest/tests/unit/odl
95 functest/tests/unit/openstack
96 functest/tests/unit/vnf/epc
97 functest/tests/unit/utils
98 commands = nosetests {[testenv:py36]dirs}
101 basepython = python2.7
103 functest/opnfv_tests/openstack/cinder/write_data.sh
104 functest/opnfv_tests/openstack/cinder/read_data.sh
105 functest/ci/add_proxy.sh
106 functest/ci/convert_images.sh
107 functest/ci/download_images.sh
109 commands = bashate {[testenv:bashate]files}
112 basepython = python2.7
114 functest/tests/unit/ci
115 functest/tests/unit/odl
116 functest/tests/unit/openstack/vping
117 functest/tests/unit/openstack/cinder
118 commands = nosetests --with-coverage --cover-tests \
119 --cover-package functest.ci.check_deployment \
120 --cover-package functest.opnfv_tests.sdn.odl \
121 --cover-package functest.opnfv_tests.openstack.vping.vping_ssh \
122 --cover-package functest.opnfv_tests.openstack.cinder.cinder_test \
123 --cover-package functest.tests.unit \
124 --cover-min-percentage 100 {[testenv:cover]dirs}
127 basepython = python2.7
128 whitelist_externals = bash
129 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
132 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
133 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
135 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"