Commit 09a010c1 authored by Thomas Goirand's avatar Thomas Goirand

Test with all Python versions.

parent f88b58df
cloud-init (0.7.9-5) UNRELEASED; urgency=medium
* Test with all Python versions.
-- Thomas Goirand <zigo@debian.org> Mon, 16 Oct 2017 20:04:32 +0000
cloud-init (0.7.9-4) unstable; urgency=high
* Add patch to avoid hardcoding /sbin for modprobe and udevadm.
......
......@@ -16,7 +16,10 @@ Build-Depends:
pep8,
po-debconf,
pylint,
python3,
python3-all,
python3-setuptools,
Build-Depends-Indep:
python-pyflakes,
python3-configobj,
python3-httpretty,
python3-jinja2,
......@@ -26,7 +29,6 @@ Build-Depends:
python3-oauthlib,
python3-pep8,
python3-prettytable,
python3-pyflakes,
python3-requests,
python3-serial,
python3-setuptools,
......
#!/usr/bin/make -f
PYTHON3S:=$(shell py3versions -vr)
export PYBUILD_INSTALL_ARGS=--init-system=systemd,sysvinit_deb
%:
......@@ -10,7 +11,11 @@ clean:
dh $@ --with python3,systemd --buildsystem pybuild
override_dh_auto_test:
make PYVER=python3 check
set -e && set -x && for pyvers in $(PYTHON3S); do \
PYMAJOR=`echo $$pyvers | cut -d'.' -f1` ; \
echo "===> Testing with python$$pyvers (python$$PYMAJOR)" ; \
PYTHON=python$$pyvers PYTHONPATH=. python$$pyvers -m nose -v tests/unittests ; \
done
override_dh_installinit:
dh_installinit --onlyscripts --no-start --no-restart-on-upgrade --name cloud-init-local
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment