1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-17 00:59:36 +03:00

Add travis build config

Enable builds on several python versions, and against several versions
of libvirt. Ideally we would build all the way back to 0.9.11, since
that is the min supported libvirt for python binding. It is not possible
to build this old libvirt version on modern distros though, so using
1.2.0 as the oldest for now.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange
2017-09-18 13:05:48 +01:00
parent 13b4283d58
commit 6ee87778ab
3 changed files with 65 additions and 7 deletions

View File

@ -290,15 +290,16 @@ class my_test(Command):
'lib' + plat_specifier)
def find_nosetests_path(self):
paths = [
"/usr/bin/nosetests-%d.%d" % (sys.version_info[0],
sys.version_info[1]),
"/usr/bin/nosetests-%d" % (sys.version_info[0]),
"/usr/bin/nosetests",
binaries = [
"nosetests-%d.%d" % (sys.version_info[0],
sys.version_info[1]),
"nosetests-%d" % (sys.version_info[0]),
"nosetests",
]
for path in paths:
if os.path.exists(path):
for binary in binaries:
path = distutils.spawn.find_executable(binary)
if path is not None:
return path
raise Exception("Cannot find any nosetests binary")