[Pkg-javascript-commits] [node-when] 01/01: Minor improvment

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 27 14:41:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-when.

commit c28dbb55f33ff490cf8cdc7402b45978cd2416c0
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sun Aug 27 16:40:57 2017 +0200

    Minor improvment
---
 debian/docs  |  4 +---
 debian/rules | 11 +++++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/debian/docs b/debian/docs
index 136b548..44a76fc 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,4 +1,2 @@
 README.md
-docs/api.mp
-docs/debug-api.md
-docs/installation.md
+docs/*.md
diff --git a/debian/rules b/debian/rules
index c090259..39957e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,16 @@
 %:
 	dh $@
 
+PIPESAFE=exec 3>&1; s=$$(exec 4>&1 >&3; { $(1) ; echo $$? >&4; } | $(2)) && exit $$s
+
 override_dh_installchangelogs:
 	dh_installchangelogs CHANGES.md
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+	$(call PIPESAFE,sed "s;require('when');require('./when.js');g" < debian/tests/smoketest,sh -x)
+else
+	@echo '**********************************************************'
+	@echo 'Skip test suite                                           '
+	@echo '**********************************************************'
+endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-when.git



More information about the Pkg-javascript-commits mailing list