2 envlist = pep8,pylint,yamllint,ansiblelint,bashate,py38,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}
13 commands = nosetests --with-xunit \
16 --cover-package=functest_kubernetes \
22 basepython = python3.8
26 basepython = python3.8
28 --ignore-imports=y --min-similarity-lines=10 \
29 --disable=locally-disabled --reports=n functest_kubernetes
32 basepython = python3.8
37 yamllint {[testenv:yamllint]files}
40 basepython = python3.8
41 commands = ansible-lint -x303 ansible/site.yml
44 basepython = python3.8
45 commands = bandit -r functest_kubernetes -x tests -n 5 -ll
48 commands = nosetests functest_kubernetes
51 basepython = python3.8
54 functest_kubernetes/ci/download_images.sh
55 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
58 basepython = python3.8
59 whitelist_externals = bash
60 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
63 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
64 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
66 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"