2 envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,bandit,py38,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/master/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 = python3.8
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 -b spelling -Dextensions=sphinxcontrib.spelling docs docs/build/spellcheck
36 basepython = python3.8
40 basepython = python3.8
43 --ignore-imports=y --min-similarity-lines=10 \
44 --disable=locally-disabled functest
47 basepython = python3.8
52 functest/opnfv_tests/openstack/rally/blacklist.yaml
53 functest/opnfv_tests/openstack/rally/rally_jobs.yaml
54 functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.yaml
55 functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
56 functest/opnfv_tests/vnf
58 yamllint -s {[testenv:yamllint]files}
61 basepython = python3.8
63 ansible-lint -x303 ansible/site.yml
66 commands = nosetests functest/tests/unit
69 basepython = python3.8
71 functest/opnfv_tests/openstack/cinder/write_data.sh
72 functest/opnfv_tests/openstack/cinder/read_data.sh
73 functest/ci/add_proxy.sh
74 functest/ci/convert_images.sh
75 functest/ci/download_images.sh
77 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
81 basepython = python3.8
82 commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
85 basepython = python3.8
87 functest/tests/unit/odl
88 functest/tests/unit/openstack/vping
89 functest/tests/unit/openstack/cinder
90 commands = nosetests --with-coverage --cover-tests \
91 --cover-package functest.opnfv_tests.sdn.odl \
92 --cover-package functest.opnfv_tests.openstack.vping.vping_ssh \
93 --cover-package functest.opnfv_tests.openstack.cinder.cinder_test \
94 --cover-package functest.tests.unit \
95 --cover-min-percentage 100 {[testenv:cover]dirs}
98 basepython = python3.8
99 whitelist_externals = bash
100 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
103 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
104 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
106 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"