X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Frpmbuilder.git;a=blobdiff_plain;f=tox.ini;fp=tox.ini;h=ee1ac2156c14b04ed4e00bd33b4184db5c247730;hp=0000000000000000000000000000000000000000;hb=876631a959303430aafc0be7897b086ee9b921fe;hpb=d8468e0423a9af0d3fd5bf30d45ebe18ba8b1801 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..ee1ac21 --- /dev/null +++ b/tox.ini @@ -0,0 +1,35 @@ +[tox] +envlist = py27 +skipsdist=True + +[testenv] +setenv = + COVERAGE_FILE = .coverage-{envname} +passenv = COVERAGE_FILE +basepython = python2.7 + +commands = pytest -v \ + --basetemp={envtmpdir} \ + --pep8 \ + --cov \ + --cov-branch \ + --cov-report term \ + --cov-report html:htmlcov \ + --cov-config .coveragerc \ + {posargs:rpmbuilder/executor_test.py rpmbuilder/executor.py} + +deps=pytest + pytest-cov + pytest-flakes + pytest-pep8 + mock + +[pytest] +cache_dir = .pytest-cache +pep8maxlinelength = 100 +basepython = python2.7 + +[testenv:clean] +deps= +whitelist_externals = rm +commands = rm -rf .coverage-py27 .pytest-cache __pycache__ htmlcov