[Pkg-javascript-commits] [node-strip-ansi] 03/03: new release
Paolo Greppi
paolog-guest at moszumanska.debian.org
Tue Sep 19 10:10:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository node-strip-ansi.
commit bba822f6b09c45cdd5ac85020fd8ce06d5412b7b
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Tue Sep 19 09:28:30 2017 +0200
new release
---
debian/changelog | 8 ++++++++
debian/control | 10 +++++++---
debian/patches/00-mocha.diff | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 5 ++---
debian/tests/control | 3 +++
6 files changed, 47 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 6a4693e..b6b99ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+node-strip-ansi (4.0.0-1) UNRELEASED; urgency=medium
+
+ * New upstream release
+ * Bump standards version
+ * Enable tests during build and autopkgtest
+
+ -- Paolo Greppi <paolo.greppi at libpf.com> Tue, 19 Sep 2017 12:05:52 +0200
+
node-strip-ansi (3.0.1-1) unstable; urgency=medium
* Initial release
diff --git a/debian/control b/debian/control
index 45832c3..4face72 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,16 @@ Source: node-strip-ansi
Section: web
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
-Uploaders: Thorsten Alteholz <debian at alteholz.de>
+Uploaders:
+ Thorsten Alteholz <debian at alteholz.de>,
+ Paolo Greppi <paolo.greppi at libpf.com>
Build-Depends:
debhelper (>= 9)
, dh-buildinfo
, nodejs
-Standards-Version: 3.9.8
+ , mocha
+ , node-ansi-regex (>=3.0.0)
+Standards-Version: 4.0.1
Homepage: https://github.com/chalk/strip-ansi
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-strip-ansi.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-strip-ansi.git
@@ -17,7 +21,7 @@ Architecture: all
Depends:
${misc:Depends}
, nodejs
- , node-ansi-regex (>=2.0.0)
+ , node-ansi-regex (>=3.0.0)
Description: strip ANSI escape codes
This module strips ANSI escape codes.
.
diff --git a/debian/patches/00-mocha.diff b/debian/patches/00-mocha.diff
new file mode 100644
index 0000000..d7887a6
--- /dev/null
+++ b/debian/patches/00-mocha.diff
@@ -0,0 +1,26 @@
+Index: node-strip-ansi/test.js
+===================================================================
+--- node-strip-ansi.orig/test.js
++++ node-strip-ansi/test.js
+@@ -1,13 +1,13 @@
+-import test from 'ava';
+-import m from '.';
++var m = require('.');
++var assert = require('assert');
+
+-test('strip color from string', t => {
+- t.is(m('\u001B[0m\u001B[4m\u001B[42m\u001B[31mfoo\u001B[39m\u001B[49m\u001B[24mfoo\u001B[0m'), 'foofoo');
++test('strip color from string', function() {
++ assert(m('\u001B[0m\u001B[4m\u001B[42m\u001B[31mfoo\u001B[39m\u001B[49m\u001B[24mfoo\u001B[0m') === 'foofoo');
+ });
+
+-test('strip color from ls command', t => {
+- t.is(m('\u001B[00;38;5;244m\u001B[m\u001B[00;38;5;33mfoo\u001B[0m'), 'foo');
++test('strip color from ls command', function() {
++ assert(m('\u001B[00;38;5;244m\u001B[m\u001B[00;38;5;33mfoo\u001B[0m') === 'foo');
+ });
+-test('strip reset;setfg;setbg;italics;strike;underline sequence from string', t => {
+- t.is(m('\u001B[0;33;49;3;9;4mbar\u001B[0m'), 'bar');
++test('strip reset;setfg;setbg;italics;strike;underline sequence from string', function() {
++ assert(m('\u001B[0;33;49;3;9;4mbar\u001B[0m') === 'bar');
+ });
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c508ffd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-mocha.diff
diff --git a/debian/rules b/debian/rules
index de57af0..72fd7bc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,6 @@
#override_dh_auto_build:
-#override_dh_auto_test:
-
-
+override_dh_auto_test:
+ mocha -u tdd
diff --git a/debian/tests/control b/debian/tests/control
index e0399c1..025c910 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
Tests: require
Depends: node-strip-ansi
+
+Test-Command: mocha -u tdd
+Depends: @, @builddeps@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-strip-ansi.git
More information about the Pkg-javascript-commits
mailing list