2 envlist = pep8,pylint,yamllint,bashate,py310,bandit,perm
5 pip_version = pip==20.2.4
8 -chttps://git.opnfv.org/functest/plain/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
25 basepython = python3.10
27 --ignore-imports=y --min-similarity-lines=10 \
28 --disable=locally-disabled,wrong-import-order --reports=n functest_kubernetes
31 basepython = python3.10
36 yamllint {[testenv:yamllint]files}
39 basepython = python3.10
40 commands = bandit -r functest_kubernetes -x tests -n 5 -ll
43 basepython = python3.10
46 functest_kubernetes/ci/download_images.sh
47 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
50 basepython = python3.10
51 whitelist_externals = bash
52 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
55 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
56 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
58 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"