tox.ini 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [tox]
  2. envlist = py26,py27,pep8
  3. [testenv]
  4. setenv = VIRTUAL_ENV={envdir}
  5. NOSE_WITH_OPENSTACK=1
  6. NOSE_OPENSTACK_COLOR=1
  7. NOSE_OPENSTACK_RED=0.05
  8. NOSE_OPENSTACK_YELLOW=0.025
  9. NOSE_OPENSTACK_SHOW_ELAPSED=1
  10. deps = -r{toxinidir}/tools/pip-requires
  11. -r{toxinidir}/tools/test-requires
  12. commands = nosetests
  13. [testenv:pep8]
  14. deps = pep8==1.1
  15. commands = pep8 --repeat --show-source novaclient setup.py
  16. [testenv:venv]
  17. commands = {posargs}
  18. [testenv:cover]
  19. commands = nosetests --cover-erase --cover-package=novaclient --with-xcoverage
  20. [tox:jenkins]
  21. downloadcache = ~/cache/pip
  22. [testenv:jenkins26]
  23. basepython = python2.6
  24. setenv = NOSE_WITH_XUNIT=1
  25. deps = file://{toxinidir}/.cache.bundle
  26. [testenv:jenkins27]
  27. basepython = python2.7
  28. setenv = NOSE_WITH_XUNIT=1
  29. deps = file://{toxinidir}/.cache.bundle
  30. [testenv:jenkinscover]
  31. deps = file://{toxinidir}/.cache.bundle
  32. setenv = NOSE_WITH_XUNIT=1
  33. commands = nosetests --cover-erase --cover-package=novaclient --with-xcoverage
  34. [testenv:jenkinsvenv]
  35. deps = file://{toxinidir}/.cache.bundle
  36. setenv = NOSE_WITH_XUNIT=1
  37. commands = {posargs}