fix building of forked upstream packages
[ta/rpmbuilder.git] / tox.ini
1 [tox]
2 envlist = py27
3 skipsdist=True
4
5 [testenv]
6 setenv =
7     COVERAGE_FILE = .coverage-{envname}
8 passenv = COVERAGE_FILE
9 basepython = python2.7
10
11 commands = pytest -v \
12            --basetemp={envtmpdir} \
13            --pep8 \
14            --cov \
15            --cov-branch \
16            --cov-report term \
17            --cov-report html:htmlcov \
18            --cov-config .coveragerc \
19            {posargs:rpmbuilder/executor_test.py rpmbuilder/executor.py}
20
21 deps=pytest
22      pytest-cov
23      pytest-flakes
24      pytest-pep8
25      mock
26
27 [pytest]
28 cache_dir = .pytest-cache
29 pep8maxlinelength = 100
30 basepython = python2.7
31
32 [testenv:clean]
33 deps=
34 whitelist_externals = rm
35 commands = rm -rf .coverage-py27 .pytest-cache __pycache__ htmlcov