6b90f0683579dd4a9f693c543a0675b7bac07e1a
[functest-kubernetes.git] / tox.ini
1 [tox]
2 envlist = pep8,pylint,yamllint,py27,py35,cover
3
4 [testenv]
5 usedevelop = True
6 deps =
7   -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
8   -c{toxinidir}/upper-constraints.txt
9   -r{toxinidir}/requirements.txt
10   -r{toxinidir}/test-requirements.txt
11 install_command = pip install {opts} {packages}
12
13 [testenv:pep8]
14 basepython = python2.7
15 commands = flake8
16
17 [testenv:pylint]
18 basepython = python2.7
19 whitelist_externals = bash
20 modules =
21   functest_kubernetes
22 commands =
23   pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
24
25 [testenv:yamllint]
26 basepython = python2.7
27 files =
28   docker
29 commands =
30   yamllint {[testenv:yamllint]files}
31
32 [testenv:cover]
33 basepython = python2.7
34 commands = nosetests --with-coverage --cover-tests \
35   --cover-package functest_kubernetes functest_kubernetes