tox.ini 834 B

1234567891011121314151617
  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. # Run coverage for python27 - omit interfaces.py since it's a behaviour spec only.
  11. [testenv:py27]
  12. commands = {envpython} -m coverage run --branch --source=cloudbridge --omit=cloudbridge/providers/interfaces/* setup.py test
  13. deps =
  14. coverage