| 12345678910111213141516171819202122232425262728 |
- # Tox (http://tox.testrun.org/) is a tool for running tests
- # in multiple virtualenvs. This configuration file will run the
- # test suite on all supported python versions and providers.
- # To use it, "pip install tox" and then run "tox" from this directory.
- # You will have to set all required environment variables (below) before
- # running the tests.
- #
- # Alternatively, to run mock tests only, run tox as follows:
- # CB_USE_MOCK_PROVIDERS=True tox -e py27-aws
- #
- # Simply running tox -e py27-aws also works, because the default is to use
- # mock providers.
- [tox]
- envlist = {py27,py36,pypy}-{aws,openstack}
- [testenv]
- commands = {envpython} -m coverage run --branch --source=cloudbridge --omit=cloudbridge/cloud/interfaces/* setup.py test
- setenv =
- aws: CB_TEST_PROVIDER=aws
- openstack: CB_TEST_PROVIDER=openstack
- passenv =
- CB_USE_MOCK_PROVIDERS
- aws: CB_IMAGE_AWS CB_INSTANCE_TYPE_AWS CB_PLACEMENT_AWS AWS_ACCESS_KEY AWS_SECRET_KEY
- openstack: CB_IMAGE_OS CB_INSTANCE_TYPE_OS CB_PLACEMENT_OS OS_AUTH_URL OS_PASSWORD OS_PROJECT_NAME OS_TENANT_NAME OS_USERNAME OS_REGION_NAME OS_USER_DOMAIN_NAME OS_PROJECT_DOMAIN_NAME NOVA_SERVICE_NAME
- deps =
- -rrequirements.txt
- coverage
|