Files
c541dff0895653e8d5e94c15cab0b8b20a6dbc2a
nova /tox.ini

108 lines
3.7 KiB
INI
Raw Normal View History

[testenv]
whitelist_externals = bash
find
setenv = VIRTUAL_ENV={envdir}
# mode. To do this define the TRACE_FAILONLY environmental variable.
downloadcache = ~/cache/pip
[testenv:pep8]
# NOTE(viktors): we must change default connection string for MySQL because
# we use a different DB connector (PyMySQL, not MySQLdb) in py3x
# env. So we should put new DB URLs in the env variable. This
# will allow to run tests, that require MySQL database,
# for example DB migration tests.
setenv =
{[testenv]setenv}
OS_TEST_DBAPI_ADMIN_CONNECTION=mysql+pymysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
deps = -r{toxinidir}/requirements.txt
find . -type f -name "*.pyc" -delete
nova.tests.unit.db.test_db_api \
nova.tests.unit.test_versions
usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./nova/tests/functional
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
commands =
coverage html --include='nova/*' --omit='nova/openstack/common/*' -d covhtml -i
[testenv:venv]
commands = {posargs}
python setup.py build_sphinx
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
# to 25 and run 'tox -epep8'.
[hacking]
local-check-factory = nova.hacking.checks.factory
[testenv:pip-missing-reqs]
# do not install test-requirements as that will pollute the virtualenv for
# determining missing packages
# this also means that pip-missing-reqs must be installed separately, outside
# of the requirements.txt files
deps = pip_missing_reqs
-rrequirements.txt