tox.ini 883 B

12345678910111213141516171819
  1. # Tox (http://tox.testrun.org/) is a tool for running tests
  2. # in multiple virtualenvs. This configuration file will run the
  3. # test suite on all supported python versions. To use it, "pip install tox"
  4. # and then run "tox" from this directory.
  5. [tox]
  6. envlist = py27, py33, py34, pypy
  7. [testenv]
  8. commands = {envpython} setup.py test
  9. passenv = AWS_ACCESS_KEY AWS_SECRET_KEY OS_AUTH_URL OS_PASSWORD OS_TENANT_NAME OS_USERNAME OS_REGION_NAME NOVA_SERVICE_NAME CB_IMAGE_AWS CB_INSTANCE_TYPE_AWS CB_PLACEMENT_AWS CB_IMAGE_OS CB_INSTANCE_TYPE_OS CB_PLACEMENT_OS CB_TEST_PROVIDER CB_USE_MOCK_DRIVERS
  10. deps = -rrequirements.txt
  11. # Run coverage for python27 - omit interfaces.py since it's a behaviour spec only.
  12. [testenv:py27]
  13. commands = {envpython} -m coverage run --branch --source=cloudbridge --omit=cloudbridge/providers/interfaces/* setup.py test
  14. deps =
  15. -rrequirements.txt
  16. coverage