From c9e33a1b31e09c3e85bb66428377f788ae4591ce Mon Sep 17 00:00:00 2001
From: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date: Mon, 7 Dec 2015 18:04:21 +0100
Subject: [PATCH] Run tests during build

---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index 78afd004..4eb6368d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,8 @@ export PYBUILD_NAME=swh-model
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+        PYBUILD_TEST_ARGS="python{version} -m nose swh -sva '!db'" \
+        dh_auto_test
-- 
GitLab