-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (29 loc) · 1.43 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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,azure,openstack}
[testenv]
commands = flake8 cloudbridge test setup.py
{envpython} -m coverage run --branch --source=cloudbridge --omit=cloudbridge/cloud/interfaces/* setup.py test {posargs}
setenv =
aws : CB_TEST_PROVIDER=aws
openstack : CB_TEST_PROVIDER=openstack
azure : CB_TEST_PROVIDER=azure
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
azure : AZURE_SUBSCRIPTION_ID AZURE_CLIENT_ID AZURE_SECRET AZURE_TENANT AZURE_REGION_NAME AZURE_RESOURCE_GROUP AZURE_STORAGE_ACCOUNT AZURE_VM_DEFAULT_USER_NAME AZURE_PUBLIC_KEY_STORAGE_TABLE_NAME
deps =
-rrequirements.txt
coverage