c361c8b98c
1. What is the problem When running tox for the first time, if you run "tox -e py35" ahead of "tox -e py27", then "tox -e py27" will fail. And if you run "tox -e py27" ahead of py35 test, the py35 execution fails with an error saying "db type could not be determined". In other case, If you execute "tox run" instead of running py27, py35, pep8 and pypy test respectively, the py35, pypy and pep8 can all pass the test except the py27. This bug is reported here[1]. 2. What is the solution to the problem This issue can be solved by removing .testrepository/times.dbm from tox.ini. 3. What the features need to be implemented to the Tricircle to realize the solution None. [1] https://bugs.launchpad.net/testrepository/+bug/1229445 Change-Id: I497aa835fc5551b7422741216aa1c702f7aa6f0b
59 lines
1.5 KiB
INI
59 lines
1.5 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py35,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
sitepackages = True
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
TRICIRCLE_TEST_DIRECTORY=tricircle/tests
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/neutron@master#egg=neutron
|
|
commands =
|
|
rm -Rf .testrepository/times.dbm
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
whitelist_externals = rm
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py testr --coverage --testr-args='{posargs}'
|
|
coverage report --fail-under=71 --skip-covered
|
|
|
|
[testenv:genconfig]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = oslo-config-generator --config-file=etc/api-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/xjob-cfg-gen.conf
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
[hacking]
|
|
import_exceptions = tricircle.common.i18n
|