tox.ini 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [tox]
  2. envlist = py24,py25,py26,py27
  3. [testenv]
  4. distribute = True
  5. sitepackages = False
  6. commands = nosetests
  7. [testenv:py24]
  8. basepython = python2.4
  9. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  10. pip -E {envdir} install -r contrib/requirements/py24.txt
  11. pip -E {envdir} install -r contrib/requirements/test.txt
  12. nosetests --with-xunit --xunit-file=nosetests.xml \
  13. --with-coverage3 --cover3-xml \
  14. --cover3-xml-file=coverage.xml
  15. [testenv:py25]
  16. basepython = python2.5
  17. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  18. pip -E {envdir} install -r contrib/requirements/py25.txt
  19. pip -E {envdir} install -r contrib/requirements/test.txt
  20. nosetests --with-xunit --xunit-file=nosetests.xml \
  21. --with-coverage3 --cover3-xml \
  22. --cover3-xml-file=coverage.xml
  23. [testenv:py26]
  24. basepython = python2.6
  25. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  26. pip -E {envdir} install -r contrib/requirements/py26.txt
  27. pip -E {envdir} install -r contrib/requirements/test.txt
  28. nosetests --with-xunit --xunit-file=nosetests.xml \
  29. --with-coverage3 --cover3-xml \
  30. --cover3-xml-file=coverage.xml
  31. [testenv:py27]
  32. basepython = python2.7
  33. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  34. pip -E {envdir} install -r contrib/requirements/test.txt
  35. nosetests --with-xunit --xunit-file=nosetests.xml \
  36. --with-coverage3 --cover3-xml \
  37. --cover3-xml-file=coverage.xml