Slightly improve tox.ini
[functest-kubernetes.git] / tox.ini
1 [tox]
2 envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27
3
4 [testenv]
5 usedevelop = True
6 deps =
7   -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
8   -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/queens/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 =
27   pylint --disable=locally-disabled --reports=n functest_kubernetes
28
29 [testenv:yamllint]
30 basepython = python2.7
31 files =
32   .travis.yml
33   docker
34 commands =
35   yamllint {[testenv:yamllint]files}
36
37 [testenv:ansiblelint]
38 basepython = python2.7
39 commands =
40   ansible-lint ansible/site.yml
41
42 [testenv:py36]
43 commands = nosetests functest_kubernetes
44
45 [testenv:bashate]
46 basepython = python2.7
47 files =
48   build.sh
49 commands = bashate {[testenv:bashate]files}