From 3a93adaac4dc834168a6305aba739a84ff781d80 Mon Sep 17 00:00:00 2001 From: Dmitry Teselkin Date: Fri, 15 Apr 2016 09:46:50 +0300 Subject: 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. --- tox.ini | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tox.ini (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..2f98f90f --- /dev/null +++ b/tox.ini @@ -0,0 +1,23 @@ +[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} -- cgit v1.2.3