[Pkg-javascript-commits] [node-jsonstream] 01/06: Fix install path

Bastien Roucariès rouca at moszumanska.debian.org
Sun Apr 16 22:14:40 UTC 2017


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

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

commit b8941cbf66521a9e7bec77820b7e42967dc8fabd
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sat Apr 15 16:59:46 2017 +0200

    Fix install path
---
 debian/changelog |  8 ++++++++
 debian/control   |  4 ++++
 debian/install   |  4 ++--
 debian/links     |  2 +-
 debian/rules     | 15 +++++++++++++--
 5 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ca89b90..c175557 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+node-jsonstream (1.0.3-2) unstable; urgency=high
+
+  * Team upload
+  * Fix install in wrong dir
+  * Run test suite in order to avoid this kind of errors.
+
+ -- Bastien Roucariès <rouca at debian.org>  Sat, 15 Apr 2017 16:41:18 +0200
+
 node-jsonstream (1.0.3-1) unstable; urgency=low
 
   * Initial release (Closes: #840491)
diff --git a/debian/control b/debian/control
index 50bd69d..61cb928 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,10 @@ Build-Depends:
  debhelper (>= 9),
   dh-buildinfo,
   nodejs
+  , dpkg-dev (>= 1.17.14)
+  , node-through (>= 2.2.7) <!nocheck>
+  , node-through (<< 3) <!nocheck>
+  , node-jsonparse (>= 1.0.0) <!nocheck>
 Standards-Version: 3.9.8
 Homepage: http://github.com/dominictarr/JSONStream
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-jsonstream.git
diff --git a/debian/install b/debian/install
index 5c36bb7..b51cc22 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,2 @@
-package.json usr/lib/nodejs/jsonstream/
-index.js usr/lib/nodejs/jsonstream/
+package.json usr/lib/nodejs/JSONStream/
+index.js usr/lib/nodejs/JSONStream/
diff --git a/debian/links b/debian/links
index 6016dde..54ee6e1 100644
--- a/debian/links
+++ b/debian/links
@@ -1 +1 @@
-usr/lib/nodejs/jsonstream/index.js usr/bin/jsonstream
+usr/lib/nodejs/JSONStream/index.js usr/bin/jsonstream
diff --git a/debian/rules b/debian/rules
index de57af0..88ab79b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,23 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# further test need it-is not packaged for strech
+TEST_FILE=test/browser.js test/map.js test/null.js
+
 %:
 	dh $@
 
 #override_dh_auto_build:
 
-#override_dh_auto_test:
-
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	set -e; for TEST in $(TEST_FILE); do \
+		tap $$TEST;\
+	done
+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-jsonstream.git



More information about the Pkg-javascript-commits mailing list