2 envlist = pep8,pylint,yamllint,ansiblelint,bashate,py37,bandit,perm
7 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=stable/jerma
8 -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/train/upper-constraints.txt}
9 -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
11 install_command = pip install {opts} {packages}
12 commands = nosetests --with-xunit \
15 --cover-package=functest_kubernetes \
21 basepython = python3.7
25 basepython = python3.7
27 --ignore-imports=y --min-similarity-lines=10 \
28 --disable=locally-disabled --reports=n functest_kubernetes
31 basepython = python3.7
36 yamllint {[testenv:yamllint]files}
39 basepython = python3.7
40 commands = ansible-lint -x303 ansible/site.yml
43 basepython = python3.7
44 commands = bandit -r functest_kubernetes -x tests -n 5 -ll
47 commands = nosetests functest_kubernetes
50 basepython = python3.7
53 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
56 basepython = python3.7
57 whitelist_externals = bash
58 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
61 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
62 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
64 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"