-
Notifications
You must be signed in to change notification settings - Fork 38
/
tox.ini
34 lines (29 loc) · 1.2 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
33
34
[tox]
setenv = PYTHONDONTWRITEBYTECODE=1
basepython = python2.7
[testenv:style]
deps = -r{toxinidir}/requirements.style.txt
commands = flake8 {toxinidir}/f5_openstack_agent
[testenv:unit]
passenv = COVERALLS_REPO_TOKEN
whitelist_externals=bash
deps = -r{toxinidir}/requirements.unittest.txt
commands =
py.test \
--ignore {toxinidir}/f5_openstack_agent/tests/functional \
--ignore {toxinidir}/f5_openstack_agent/lbaasv2/drivers/bigip/test/test_agent_manager.py \
--ignore {toxinidir}/f5_openstack_agent/lbaasv2/drivers/bigip/test/test_agent_manager_LbaasAgentManager.py \
--ignore {toxinidir}/f5_openstack_agent/lbaasv2/drivers/bigip/test/test_plugin_rpc.py \
--ignore {toxinidir}/f5_openstack_agent/lbaasv2/drivers/bigip/test/test_icontrol_driver.py \
--cov {toxinidir}/f5_openstack_agent \
{toxinidir}/f5_openstack_agent
bash -c "if [ ! -z $COVERALLS_REPO_TOKEN ]; then coveralls; fi"
[testenv:disconnected_service]
deps = -r{toxinidir}/requirements.functest.txt
commands = py.test {posargs}
[testenv:singlebigip]
commands = py.test {posargs}
[testenv:functest]
#recreate = True
deps = -r{toxinidir}/requirements.functest.txt
commands = py.test {posargs}