new testenv to check Opendaylight

add new test environment to check Opendaylight.

Change-Id: I267e8f663527610b11f4b4b196f303798c74721d
This commit is contained in:
Isaku Yamahata
2017-07-07 03:06:39 -07:00
parent 4e3c3ffdbb
commit 1575fac4df

21
tox.ini
View File

@@ -61,6 +61,7 @@ commands =
neutron-db-manage --subproject networking-odl check_migration
{[testenv:genconfig]commands}
{[testenv:bashate]commands}
{[testenv:capitald]commands}
whitelist_externals =
bash
mkdir
@@ -113,6 +114,26 @@ commands = bash -c "find {toxinidir} \
-print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043"
whitelist_externals = bash
[testenv:capitald]
usedevelop = False
skip_install = True
deps =
# Check if "Opendaylight" word is in any file
# Only "OpenDaylight" (with uppercase 'D') should be used
commands = bash -c "! grep \
--exclude-dir='.*' \
--exclude-dir='cover' \
--exclude-dir='__pycache__' \
--exclude='tox.ini' \
--exclude='ChangeLog' \
--exclude='*.py' \
--exclude='*.pyc' \
--recursive \
--line-number \
Opendaylight \
{toxinidir}"
whitelist_externals = bash
[testenv:genconfig]
deps = -r{toxinidir}/requirements.txt
commands =