2 envlist = docs,pep8,pylint,yamllint,ansiblelint,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}
92 basepython = python2.7
94 ansible-lint ansible/site.yml
98 functest/tests/unit/ci
99 functest/tests/unit/odl
100 functest/tests/unit/openstack
101 functest/tests/unit/vnf/epc
102 functest/tests/unit/utils
103 commands = nosetests {[testenv:py36]dirs}
106 basepython = python2.7
108 functest/opnfv_tests/openstack/cinder/write_data.sh
109 functest/opnfv_tests/openstack/cinder/read_data.sh
110 functest/ci/add_proxy.sh
111 functest/ci/convert_images.sh
112 functest/ci/download_images.sh
114 commands = bashate {[testenv:bashate]files}
117 basepython = python2.7
119 functest/tests/unit/ci
120 functest/tests/unit/odl
121 functest/tests/unit/openstack/vping
122 functest/tests/unit/openstack/cinder
123 commands = nosetests --with-coverage --cover-tests \
124 --cover-package functest.ci.check_deployment \
125 --cover-package functest.opnfv_tests.sdn.odl \
126 --cover-package functest.opnfv_tests.openstack.vping.vping_ssh \
127 --cover-package functest.opnfv_tests.openstack.cinder.cinder_test \
128 --cover-package functest.tests.unit \
129 --cover-min-percentage 100 {[testenv:cover]dirs}
132 basepython = python2.7
133 whitelist_externals = bash
134 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
137 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
138 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
140 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"