[Pkg-javascript-commits] [node-js-yaml] 02/03: Use buildprofile nodoc and nocheck

Bastien Roucariès rouca at moszumanska.debian.org
Thu Aug 17 15:26:12 UTC 2017


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

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

commit d645ba52ba54d6ab74efba8e9c701ff4a0ba991e
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Thu Aug 17 16:22:51 2017 +0200

    Use buildprofile nodoc and nocheck
    
    Reduce build loop of node-tape
---
 debian/changelog |  2 ++
 debian/control   | 17 +++++++++--------
 debian/rules     | 26 ++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8b3eb24..2257f89 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ node-js-yaml (3.9.1+dfsg-1) unstable; urgency=medium
 
   * Team upload
   * Bump compat
+  * Create build profile nodoc, nocheck to reduce
+    build loop of node-tape
 
  -- Bastien Roucariès <rouca at debian.org>  Thu, 17 Aug 2017 16:18:15 +0200
 
diff --git a/debian/control b/debian/control
index 7b8bd7e..90b540e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,13 +3,14 @@ Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Ross Gammon <rossgammon at debian.org>
-Build-Depends: debhelper (>= 10),
-               dh-buildinfo,
-               nodejs,
-               help2man,
-               mocha,
-               node-argparse,
-               node-esprima
+Build-Depends: debhelper (>= 10)
+               , dh-buildinfo
+               , nodejs
+	       , dpkg-dev (>= 1.17.14)
+               , help2man <!nodoc>
+               , mocha <!nocheck>
+               , node-argparse (>= 1.0.7) <!nodoc> <!nocheck>
+               , node-esprima (>= 4.0.0) <!nodoc> <!nocheck>
 Standards-Version: 4.0.1
 Homepage: https://github.com/nodeca/js-yaml
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-js-yaml.git
@@ -20,7 +21,7 @@ Architecture: all
 Depends: ${misc:Depends},
          nodejs,
          node-argparse (>= 1.0.7),
-         node-esprima (>= 2.6.0)
+         node-esprima (>= 4.0.0)
 Description: YAML 1.2 parser and serializer
  This is an implementation of YAML, a human-friendly data serialization
  language. Started as PyYAML port, it was completely rewritten from scratch.
diff --git a/debian/rules b/debian/rules
index f5b349d..d46d903 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,16 +10,42 @@
 override_dh_auto_build:
 	# Prevent makefile from being used. Eslint is not in Debian.
 
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
 override_dh_auto_test:
 	mocha -R spec
+else
+override_dh_auto_test: skipped_dh_auto_test
+endif
+else
+override_dh_auto_test: skipped_dh_auto_test
+endif
+
+skipped_dh_auto_test:
+	@echo '**********************************************************'
+	@echo 'Skip testsuite                                       '
+	@echo '**********************************************************'
 
 override_dh_fixperms:
 	dh_fixperms
 	chmod +x debian/node-js-yaml/usr/lib/nodejs/js-yaml/bin/js-yaml.js
 
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
 override_dh_installman:
 	help2man --no-info --name "JavaScript YAML parser and dumper" --include=debian/help2man.include bin/js-yaml.js > debian/js-yaml.1
 	dh_installman
+else
+override_dh_installman: skipped_dh_installman
+endif
+else
+override_dh_installman: skipped_dh_installman
+endif
+
+skipped_dh_installman:
+	@echo '**********************************************************'
+	@echo 'Skip installing man                                       '
+	@echo '**********************************************************'
 
 override_dh_auto_clean:
 	dh_auto_clean

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



More information about the Pkg-javascript-commits mailing list