f3127601ef
There was no easy way to check that the requirements in the current commit overlap with requirements in the ancestor commit. This change adds a tox env that when run compares the global-requirements.txt with the parent commit's global-requirements.txt. If the requirements for the packages don't overlap it fails. Run it with tox -e versions-overlap-parent Change-Id: I03bdead39760e9c13d6de4a33f8e5e788052323d Closes-Bug: #1326504
29 lines
623 B
INI
29 lines
623 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = py27,pypy,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
# work around until pypy vs. setuptools issue in bug 1290562 is fixed
|
|
[testenv:pypy]
|
|
deps = setuptools>3.4
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:versions-overlap-parent]
|
|
commands =
|
|
python versions_overlap_parent.py
|
|
|
|
[flake8]
|
|
ignore = H803
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|