Add xrally_kubernetes_full
[functest-kubernetes.git] / tox.ini
1 [tox]
2 envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,bandit
3
4 [testenv]
5 usedevelop = True
6 deps =
7   -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=stable/hunter
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 \
13   --with-coverage \
14   --cover-tests \
15   --cover-package=functest_kubernetes \
16   --cover-xml \
17   --cover-html \
18   functest_kubernetes
19
20 [testenv:pep8]
21 basepython = python2.7
22 commands = flake8
23
24 [testenv:pylint]
25 basepython = python2.7
26 commands = pylint \
27     --ignore-imports=y --min-similarity-lines=10 \
28     --disable=locally-disabled,super-on-old-class --reports=n functest_kubernetes
29
30 [testenv:yamllint]
31 basepython = python2.7
32 files =
33   .travis.yml
34   docker
35 commands =
36   yamllint {[testenv:yamllint]files}
37
38 [testenv:ansiblelint]
39 basepython = python2.7
40 commands = ansible-lint -x303 ansible/site.yml
41
42 [testenv:bandit]
43 basepython = python2.7
44 commands = bandit -r functest_kubernetes -x tests -n 5 -ll
45
46 [testenv:py36]
47 commands = nosetests functest_kubernetes
48
49 [testenv:bashate]
50 basepython = python2.7
51 files =
52   build.sh
53 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
54
55 [testenv:perm]
56 basepython = python2.7
57 whitelist_externals = bash
58 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
59 commands =
60   bash -c "\
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"
63   bash -c "\
64     find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"