d/rules: Execute unit tests during package build.

This commit is contained in:
James Page 2016-03-08 15:08:13 +00:00
parent 85bd9c2203
commit d72548c1fe
2 changed files with 10 additions and 6 deletions

4
debian/changelog vendored
View File

@ -1,7 +1,11 @@
python-rcssmin (1.0.6-2) UNRELEASED; urgency=medium
[ Ondřej Nový ]
* Fixed VCS URLs (https).
[ James Page ]
* d/rules: Execute unit tests during package build.
-- Ondřej Nový <novy@ondrej.org> Sun, 28 Feb 2016 15:48:16 +0100
python-rcssmin (1.0.6-1) unstable; urgency=medium

12
debian/rules vendored
View File

@ -21,12 +21,12 @@ override_dh_auto_install:
rm -rf $(CURDIR)/debian/python*-rcssmin/usr/lib/python*/dist-packages/*.pth
rm -rf $(CURDIR)/debian/python*/usr/share/doc/rcssmin
#override_dh_auto_test:
#ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
# set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \
# python$$pyvers setup.py test ; \
# done
#endif
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \
python$$pyvers run_tests.py tests ; \
done
endif
override_dh_clean:
dh_clean -O--buildsystem=python_distutils