[Pkg-javascript-commits] [node-nan] 06/10: Improve rules

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 19:43:46 UTC 2017


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

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

commit 13a64406f3d53c843d4b5c4159a3d9de21b0d0be
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Wed Sep 6 14:23:09 2017 +0200

    Improve rules
---
 debian/control | 11 ++++++-----
 debian/rules   | 10 +++++++++-
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 1dd2501..72c3f69 100644
--- a/debian/control
+++ b/debian/control
@@ -1,6 +1,6 @@
 Source: node-nan
-Section: web
-Priority: extra
+Section: javascript
+Priority: optionnal
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders:
  Jérémy Lal <kapouer at melix.org>,
@@ -9,9 +9,10 @@ Build-Depends:
  nodejs (>= 6.11.2~dfsg-1),
  debhelper (>= 10.0.0),
  dh-buildinfo,
- node-tap (>= 0.7.1),
- node-gyp,
- node-bindings
+ dpkg-dev (>= 1.17.14),
+ node-tap (>= 0.7.1) <!nocheck>,
+ node-gyp (>= 3.0.1) <!nocheck>,
+ node-bindings (>=1.2.1)  <!nocheck>
 Standards-Version: 4.1.0
 Homepage: https://github.com/nodejs/nan
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-nan.git
diff --git a/debian/rules b/debian/rules
index d6ae997..59a678b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,11 +10,19 @@
 override_dh_auto_build:
 
 override_dh_auto_test:
-	node-gyp rebuild --directory test
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+	V=1 node-gyp rebuild --directory test
 	tap -R spec --gc test/js/*-test.js
+else
+	@echo '**********************************************************'
+	@echo 'Skip test suite                                           '
+	@echo '**********************************************************'
+endif
 
 override_dh_auto_clean:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
 	node-gyp clean
+endif
 	dh_auto_clean
 
 override_dh_clean:

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



More information about the Pkg-javascript-commits mailing list