Add --network=host flag for more stable network
[ta/build-tools.git] / tox.ini
1 [tox]
2 envlist = py27, pylint
3 skipsdist=true
4
5 [testenv]
6 commands = py.test -v \
7             --basetemp={toxinidir}/.pytest-tmpdir \
8             --junitxml=junit.xml \
9             --pep8 \
10             --cov-config {toxinidir}/.coveragerc \
11             --cov-branch \
12             --cov-report term-missing \
13             --cov-report html:htmlcov \
14             --cov=. \
15             {posargs:.}
16
17 setenv =
18     PYTHONPATH = {toxinidir}/tests/mocked_dependencies:{toxinidir}/src
19 deps=-rrequirements.txt
20
21 [pytest]
22 cache_dir = .pytest-cache
23 pep8maxlinelength = 100
24
25 [testenv:pylint]
26 basepython = python2.7
27 commands = pylint --rcfile={toxinidir}/pylintrc {posargs:tools/}
28
29 deps=pylint < 2.0
30      -rrequirements.txt
31
32 [testenv:clean]
33 deps=
34 whitelist_externals = rm
35 commands = rm -rf .coverage .pytest-cache .pytest-tmpdir junit.xml htmlcov