Commit 3a93adaa authored by Dmitry Teselkin's avatar Dmitry Teselkin Committed by Guido Günther

Use tox for testing

tox is a tool to automate creating venv and running
tests like py27 unittests and pep8 style checks.

This commit adds tox configs needed and some other
files for this feature.
parent c78a67ed
*.pyc
.noseids
.coverage
.tox/
.ropeproject/
coverage.xml
gbp/version.py
......
[tox]
envlist = pep8, py27
skipsdist = True
[testenv]
whitelist_externals =
find
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
sitepackages = True
commands =
find . -type f -name "*.pyc" -delete
[testenv:pep8]
deps = hacking
commands =
find . -type f -name "*.pyc" -delete
flake8 {posargs}
[testenv:py27]
commands =
find . -type f -name "*.pyc" -delete
python setup.py nosetests --verbosity=3 --with-xcoverage {posargs}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment