Skip to content
Browse files

Added tox.ini

  • Loading branch information...
1 parent 79a815d commit 4ac294eca55c7e3ce2b5dca665705f8a8399ef64 Ask Solem committed
Showing with 40 additions and 0 deletions.
  1. +40 −0 tox.ini
View
40 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

0 comments on commit 4ac294e

Please sign in to comment.
Something went wrong with that request. Please try again.