b762ecf9e5
Instead of using tox-install.sh, we can install horizon and neutron now directly from pypi - or use the current branch in CI system using tox-siblings. Update tox.ini for this change and add neutron to requirements file. This commit includes the following unrelated changes to pass the gate. ---------------------------------------- devstack: Use setup_develop to install As this project is in the global requirements now, we need to edit the constraints. Change-Id: I44e05b4e7b6f1c15314799c4a1e8c22f79abb74a ---------------------------------------- Update after rpc create_connection removal Recently neutron.common.rpc.create_connection has been removed. [1] [1] I2f4b24ba732be47fc9911be1e24406fb1ffe821e Closes-Bug: #1770851 Change-Id: Ie83299b7a280dab0d5dc9dc3304b5d6091b4a0cc ---------------------------------------- Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com> Change-Id: Ifffca6361b1c3991481442053bf182bde3c2d44a
59 lines
1.5 KiB
INI
59 lines
1.5 KiB
INI
[tox]
|
|
envlist = docs,py35,py27,pep8
|
|
minversion = 1.8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = find . -type f -name "*.py[c|o]" -delete
|
|
find . -type d -name "__pycache__" -delete
|
|
ostestr --regex '{posargs}'
|
|
whitelist_externals = find
|
|
|
|
[tox:jenkins]
|
|
sitepackages = True
|
|
|
|
[testenv:py27]
|
|
setenv = OS_FAIL_ON_MISSING_DEPS=1
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
neutron-db-manage --subproject tap-as-a-service --database-connection sqlite:// check_migration
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
basepython = python2.7
|
|
commands =
|
|
python setup.py test --coverage --coverage-package-name=neutron_taas --testr-args='{posargs}'
|
|
coverage report --fail-under=50 --skip-covered
|
|
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
|
|
|
[hacking]
|
|
import_exceptions = neutron_taas._i18n
|