tox.ini 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. [tox]
  2. envlist = py25,py26,py27
  3. [testenv]
  4. distribute = True
  5. sitepackages = False
  6. commands = nosetests
  7. [testenv:py25]
  8. basepython = python2.5
  9. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  10. pip -E {envdir} install -r contrib/requirements/py25.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:py26]
  16. basepython = python2.6
  17. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  18. pip -E {envdir} install -r contrib/requirements/py26.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:py27]
  24. basepython = python2.7
  25. commands = pip -E {envdir} install -r contrib/requirements/default.txt
  26. pip -E {envdir} install -r contrib/requirements/test.txt
  27. nosetests --with-xunit --xunit-file=nosetests.xml \
  28. --with-coverage3 --cover3-xml \
  29. --cover3-xml-file=coverage.xml