aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Goirand <thomas@goirand.fr>2014-05-04 00:55:51 +0800
committerThomas Goirand <thomas@goirand.fr>2014-05-04 00:55:51 +0800
commit5f99e831aa1b1fd06111f1e2ad23571b17ad4fcc (patch)
tree4e4a8a64986b8583c8cd998019fef65794ea1fcb
parent1eee818021ae83d8def921a23095fcc8d777c2f6 (diff)
downloadfactory-boy-5f99e831aa1b1fd06111f1e2ad23571b17ad4fcc.tar
factory-boy-5f99e831aa1b1fd06111f1e2ad23571b17ad4fcc.tar.gz
Now running unit tests at build time.
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/rules5
2 files changed, 6 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 4d9eb58..77fa56b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ factory-boy (2.3.1-1) unstable; urgency=medium
* New upstream release (Closes: #746631).
* Standards-Version is now 3.9.5.
+ * Now running unit tests at build time.
-- Thomas Goirand <zigo@debian.org> Sat, 03 May 2014 22:56:03 +0800
diff --git a/debian/rules b/debian/rules
index c450391..99dbc84 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,8 @@ include /usr/share/openstack-pkg-tools/pkgos.make
%:
dh $@ --with python2 --buildsystem=python_distutils
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+ python -W default setup.py test
+endif