From 71a8d2f39f9ee25a4a2ab8abe7f68d344ffc5b4e Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 20 Jul 2010 12:41:36 +0200 Subject: [PATCH] Added tox.ini --- tox.ini | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..faf46ea9 --- /dev/null +++ b/tox.ini @@ -0,0 +1,40 @@ +[tox] +envlist = py24,py25,py26,py27 + +[testenv] +distribute = True +sitepackages = False +commands = nosetests + +[testenv:py24] +basepython = python2.4 +commands = pip -E {envdir} install -r contrib/requirements/default.txt + pip -E {envdir} install -r contrib/requirements/test.txt + nosetests --with-xunit --xunit-file=nosetests.xml \ + --with-coverage3 --cover3-xml \ + --cover3-xml-file=coverage.xml + + +[testenv:py25] +basepython = python2.5 +commands = pip -E {envdir} install -r contrib/requirements/default.txt + pip -E {envdir} install -r contrib/requirements/test.txt + nosetests --with-xunit --xunit-file=nosetests.xml \ + --with-coverage3 --cover3-xml \ + --cover3-xml-file=coverage.xml + +[testenv:py26] +basepython = python2.6 +commands = pip -E {envdir} install -r contrib/requirements/default.txt + pip -E {envdir} install -r contrib/requirements/test.txt + nosetests --with-xunit --xunit-file=nosetests.xml \ + --with-coverage3 --cover3-xml \ + --cover3-xml-file=coverage.xml + +[testenv:py27] +basepython = python2.7 +commands = pip -E {envdir} install -r contrib/requirements/default.txt + pip -E {envdir} install -r contrib/requirements/test.txt + nosetests --with-xunit --xunit-file=nosetests.xml \ + --with-coverage3 --cover3-xml \ + --cover3-xml-file=coverage.xml