[Pkg-javascript-commits] [node-function-bind] 03/03: New upstream version
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Oct 4 21:12:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-function-bind.
commit 5ceb5793248e84611dc38ffa840d7dc7df55d9d7
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Wed Oct 4 22:54:55 2017 +0200
New upstream version
---
debian/changelog | 9 +++++++++
debian/compat | 2 +-
debian/control | 12 +++++++-----
debian/rules | 9 +++++++++
debian/tests/control | 7 ++++++-
debian/tests/require | 2 +-
debian/tests/runtestsuite | 32 ++++++++++++++++++++++++++++++++
7 files changed, 65 insertions(+), 8 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b38a5e2..2414d10 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+node-function-bind (1.1.1-1) unstable; urgency=medium
+
+ * Team upload
+ * New upstream release
+ * Bump policy and debhelper (no changes)
+ * Run testsuite
+
+ -- Bastien Roucariès <rouca at debian.org> Wed, 04 Oct 2017 22:37:22 +0200
+
node-function-bind (1.1.0-1) unstable; urgency=low
* Initial release (Closes: #814281)
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index b3e75d7..0ffd14b 100644
--- a/debian/control
+++ b/debian/control
@@ -1,12 +1,14 @@
Source: node-function-bind
-Section: web
+Section: javascript
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: Ross Gammon <rossgammon at mail.dk>
-Build-Depends: debhelper (>= 9),
- dh-buildinfo,
- nodejs
-Standards-Version: 3.9.7
+Build-Depends: debhelper (>= 10)
+ , dh-buildinfo
+ , dpkg-dev (>= 1.17.14)
+ , node-tap (>= 10.7.2) <!nocheck>
+ , node-tape (>= 4.6.3) <!nocheck>
+Standards-Version: 4.1.1
Homepage: https://github.com/Raynos/function-bind
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-function-bind.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-function-bind.git
diff --git a/debian/rules b/debian/rules
index 218df65..789be3e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,12 @@
%:
dh $@
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ tap -R spec test/*.js
+else
+ @echo '**********************************************************'
+ @echo 'Skip test suite '
+ @echo '**********************************************************'
+endif
diff --git a/debian/tests/control b/debian/tests/control
index 84cbd4e..023c745 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,7 @@
Tests: require
-Depends: node-function-bind
+Depends: node-function-bind, nodejs (>= 6)
+
+Tests: runtestsuite
+Depends: node-function-bind, nodejs (>= 6)
+ , node-tap (>= 10.7.2)
+ , node-tape (>= 4.6.3)
\ No newline at end of file
diff --git a/debian/tests/require b/debian/tests/require
index bb7d140..0619fb5 100644
--- a/debian/tests/require
+++ b/debian/tests/require
@@ -1,3 +1,3 @@
#!/bin/sh
set -e
-nodejs -e "require('function-bind');"
+node -e "require('function-bind');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..107f865
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -e
+
+# notice the / at end in order to load this module
+PACKAGE='function-bind'
+SEDCMD="s,(require|resolve)\s*[(]\s*'[.][.]/,\\1('$PACKAGE/,g"
+SEDERROR="Code[[:space:]]*coverage[ ]*is[ ]*disabled"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test $tmpdir/test
+find test/ -maxdepth 1 -name '*.js' -print0 | \
+ xargs -0 -n1 \
+ sh -c 'set -e; echo "TESTING: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+cd $tmpdir
+
+
+TAPCMD=""
+
+TAPCMD() {
+ set -e;
+ tap -R spec test/*.js
+}
+
+SEDERROR () {
+ set -e
+ sed -e "/$SEDERROR/w /dev/fd/2" -e "/$SEDERROR/d"
+}
+
+TAPCMD 2> error.log
+exec 3>&1 ;SEDERROR < error.log 2>&3 >&2 3>&-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-function-bind.git
More information about the Pkg-javascript-commits
mailing list