Prepare OPNFV functest releases
[functest-kubernetes.git] / tox.ini
1 [tox]
2 envlist = pep8,pylint,yamllint,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://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master}
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 whitelist_externals = bash
27 modules =
28   functest_kubernetes
29 commands =
30   pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
31
32 [testenv:yamllint]
33 basepython = python2.7
34 files =
35   .travis.yml
36   ci
37   docker
38 commands =
39   yamllint {[testenv:yamllint]files}
40
41 [testenv:py36]
42 commands = nosetests functest_kubernetes
43
44 [testenv:bashate]
45 basepython = python2.7
46 files =
47   build.sh
48 commands = bashate {[testenv:bashate]files}