From e23f599e4d6426f3284ee6fd0b196c78a7655df1 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 3 Jun 2016 23:44:15 -0400 Subject: [PATCH] Add support for bindep Change-Id: I2d80c547daf403c9467d8924d821c27dc4131606 Signed-off-by: Paul Belanger --- other-requirements.txt | 4 ++++ tox.ini | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 other-requirements.txt diff --git a/other-requirements.txt b/other-requirements.txt new file mode 100644 index 0000000000..1ade6557cd --- /dev/null +++ b/other-requirements.txt @@ -0,0 +1,4 @@ +mysql-client [test] +mysql-server [test] +postgresql [test] +postgresql-client [test] diff --git a/tox.ini b/tox.ini index 79ea939b11..6dc83f7133 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,14 @@ deps = -r{toxinidir}/requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' +[testenv:bindep] +# Do not install any requirements. We want this to be fast and work even if +# system dependencies are missing, since it's used to tell you what system +# dependencies are missing! This also means that bindep must be installed +# separately, outside of the requirements files. +deps = bindep +commands = bindep test + [testenv:pep8] commands = flake8 {posargs}