2 envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,bandit,perm
7 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
8 -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/rocky/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 = python2.7
25 basepython = python2.7
26 commands = pylint --disable=locally-disabled --reports=n functest_kubernetes
29 basepython = python2.7
34 yamllint {[testenv:yamllint]files}
37 basepython = python2.7
38 commands = ansible-lint ansible/site.yml
41 basepython = python2.7
42 commands = bandit -r functest_kubernetes -x tests -n 5 -ll
45 commands = nosetests functest_kubernetes
48 basepython = python2.7
51 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
54 basepython = python2.7
55 whitelist_externals = bash
56 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
59 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
60 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
62 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"