2 envlist = docs,pep8,pylint,yamllint,bashate,bandit,py310,cover,perm,pre-commit
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}
15 --junit-xml=junit.xml \
16 --html=report.html --self-contained-html \
17 --cov=xtesting --cov-reset --cov-report html \
21 basepython = python3.10
24 --ignore-path api/build \
25 --ignore-path docs/build \
26 --ignore-path docs/_build \
29 sphinx-build -W -b html api/ api/build
30 sphinx-build -W -n -b html docs docs/build/html
31 sphinx-build -W -n -b linkcheck docs docs/build/linkcheck
32 sphinx-build -W -b spelling -Dextensions=sphinxcontrib.spelling docs docs/build/spellcheck
35 basepython = python3.10
39 basepython = python3.10
42 --ignore-imports=y --min-similarity-lines=15 \
43 --generated-members=os.* \
44 --disable=locally-disabled functest
47 basepython = python3.10
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.10
63 functest/opnfv_tests/openstack/cinder/write_data.sh
64 functest/opnfv_tests/openstack/cinder/read_data.sh
65 functest/ci/add_proxy.sh
66 functest/ci/convert_images.sh
67 functest/ci/download_images.sh
69 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
72 basepython = python3.10
73 commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
76 basepython = python3.10
78 functest/tests/unit/odl
79 functest/tests/unit/openstack/vping
80 functest/tests/unit/openstack/cinder
82 pytest --cov=xtesting --cov-reset --cov-report html --cov-fail-under=100 \
86 basepython = python3.10
87 whitelist_externals = sh
88 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
91 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
92 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
94 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"
97 basepython = python3.10
99 pre-commit run --all-files --show-diff-on-failure