From d8027c76c02e2632de8997885bb2d8c4b46fe2a9 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 14 Jun 2013 17:38:53 +0800 Subject: [PATCH] Now runs the unit tests at build time. Rewritten-From: a069b90cc75a8ee4226f4b1c397371442207e424 --- xenial/debian/changelog | 2 ++ xenial/debian/control | 1 + xenial/debian/rules | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/xenial/debian/changelog b/xenial/debian/changelog index 4963e16..5a30ca0 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -4,6 +4,8 @@ ceilometer (2013.1.2-1) unstable; urgency=low * Added configuration to each init scripts so that they log in their own log file, added the corresponding purge postrm and logrotate. * Removed applied upstream patch: modify-limitation-on-request-version.patch + * Build-depends on python-happybase. + * Now runs the unit tests at build time. -- Thomas Goirand Mon, 03 Jun 2013 16:26:14 +0800 diff --git a/xenial/debian/control b/xenial/debian/control index fea53c1..f153377 100644 --- a/xenial/debian/control +++ b/xenial/debian/control @@ -22,6 +22,7 @@ Build-Depends-Indep: pep8, python-flask (>= 0.9), python-glance (>= 2013.1~), python-glanceclient (>= 1:0.6), + python-happybase, python-iso8601, python-keystoneclient (>= 1:0.2.3), python-kombu, diff --git a/xenial/debian/rules b/xenial/debian/rules index 851754c..0e851ad 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -32,3 +32,8 @@ override_dh_auto_clean: rm -rf debian/*.upstart rm -rf debian/ceilometer-common.postinst find . -iname '*.pyc' -delete + +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) +override_dh_auto_test: + PYTHONPATH=. nosetests -P || true +endif -- 2.32.3