2 envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,bandit,py27,py36,cover,perm
5 pip_version = pip==20.2.4
8 -c{toxinidir}/upper-constraints.txt
9 -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/rocky/upper-constraints.txt}
10 -r{toxinidir}/requirements.txt
11 -r{toxinidir}/test-requirements.txt
12 install_command = pip install {opts} {packages}
13 commands = nosetests --with-xunit \
16 --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
34 sphinx-build -W -b spelling -Dextensions=sphinxcontrib.spelling docs docs/_build/spellcheck
37 basepython = python2.7
41 basepython = python2.7
44 --ignore-imports=y --min-similarity-lines=10 \
45 --disable=locally-disabled,super-on-old-class functest
48 basepython = python2.7
53 functest/opnfv_tests/openstack/rally/blacklist.yaml
54 functest/opnfv_tests/openstack/rally/rally_jobs.yaml
55 functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.yaml
56 functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
57 functest/opnfv_tests/vnf
59 yamllint -s {[testenv:yamllint]files}
62 basepython = python2.7
64 ansible-lint -x303 ansible/site.yml
67 commands = nosetests functest/tests/unit
70 basepython = python2.7
72 functest/opnfv_tests/openstack/cinder/write_data.sh
73 functest/opnfv_tests/openstack/cinder/read_data.sh
74 functest/ci/add_proxy.sh
75 functest/ci/convert_images.sh
76 functest/ci/download_images.sh
78 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
82 basepython = python2.7
83 commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
86 basepython = python2.7
88 functest/tests/unit/odl
89 functest/tests/unit/openstack/vping
90 functest/tests/unit/openstack/cinder
91 commands = nosetests --with-coverage --cover-tests \
92 --cover-package functest.opnfv_tests.sdn.odl \
93 --cover-package functest.opnfv_tests.openstack.vping.vping_ssh \
94 --cover-package functest.opnfv_tests.openstack.cinder.cinder_test \
95 --cover-package functest.tests.unit \
96 --cover-min-percentage 100 {[testenv:cover]dirs}
99 basepython = python2.7
100 whitelist_externals = bash
101 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
104 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
105 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
107 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"