2 envlist = docs,pep8,pylint,yamllint,bashate,bandit,py310,cover,perm,pre-commit
7 -c{toxinidir}/upper-constraints.txt
8 -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
9 -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
11 install_command = pip install --use-deprecated=legacy-resolver {opts} {packages}
14 --junit-xml=junit.xml \
15 --html=report.html --self-contained-html \
16 --cov=xtesting --cov-reset --cov-report html \
20 basepython = python3.10
23 --ignore-path api/build \
24 --ignore-path docs/build \
25 --ignore-path docs/_build \
28 sphinx-build -W -b html api/ api/build
29 sphinx-build -W -n -b html docs docs/build/html
30 sphinx-build -W -n -b linkcheck docs docs/build/linkcheck
31 sphinx-build -W -b spelling -Dextensions=sphinxcontrib.spelling docs docs/build/spellcheck
34 basepython = python3.10
38 basepython = python3.10
41 --ignore-imports=y --min-similarity-lines=15 \
42 --generated-members=os.* \
43 --disable=locally-disabled functest
46 basepython = python3.10
51 functest/opnfv_tests/openstack/rally/blacklist.yaml
52 functest/opnfv_tests/openstack/rally/rally_jobs.yaml
53 functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.yaml
54 functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
55 functest/opnfv_tests/vnf
57 yamllint -s {[testenv:yamllint]files}
60 basepython = python3.10
62 functest/opnfv_tests/openstack/cinder/write_data.sh
63 functest/opnfv_tests/openstack/cinder/read_data.sh
64 functest/ci/add_proxy.sh
65 functest/ci/convert_images.sh
66 functest/ci/download_images.sh
68 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
71 basepython = python3.10
72 commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
75 basepython = python3.10
77 functest/tests/unit/odl
78 functest/tests/unit/openstack/vping
79 functest/tests/unit/openstack/cinder
81 pytest --cov=xtesting --cov-reset --cov-report html --cov-fail-under=100 \
85 basepython = python3.10
86 allowlist_externals = sh
87 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*' -not -path './elements/functest/install.d/*'
90 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
91 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
93 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"
96 basepython = python3.10
98 pre-commit run --all-files --show-diff-on-failure