Now runs the unit tests at build time.
authorThomas Goirand <thomas@goirand.fr>
Fri, 14 Jun 2013 09:38:53 +0000 (17:38 +0800)
committerThomas Goirand <thomas@goirand.fr>
Fri, 14 Jun 2013 09:38:53 +0000 (17:38 +0800)
Rewritten-From: a069b90cc75a8ee4226f4b1c397371442207e424

trusty/debian/changelog
trusty/debian/control
trusty/debian/rules

index 4963e167fa8898cb18bf040746d0607a5d48208d..5a30ca026226e2e627fd37729c4b3d554faadb38 100644 (file)
@@ -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 <zigo@debian.org>  Mon, 03 Jun 2013 16:26:14 +0800
 
index fea53c1d42ff61e921ff76e89c98499f6c8e2480..f153377225678a8c0c3367f446f1c325cdb255a8 100644 (file)
@@ -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,
index 851754cb4ad5788ac86a6d15527a3ce2a6b69f56..0e851ad9c3ca43d97b256eba62351ed08e396bac 100755 (executable)
@@ -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