[Pkg-javascript-commits] [node-coveralls] 305/332: Add debian

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:54:14 UTC 2017


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

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

commit da41a5fbb488df0359e70be0fede0477bb0c9ea4
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Sep 8 00:03:02 2017 +0200

    Add debian
---
 debian/README.Debian                               |  4 ++
 debian/changelog                                   |  6 ++
 debian/compat                                      |  1 +
 debian/control                                     | 45 +++++++++++++++
 debian/copyright                                   | 44 +++++++++++++++
 debian/coveralls.js.1.xml.in                       | 40 +++++++++++++
 debian/dirs                                        |  1 +
 debian/docs                                        |  1 +
 debian/install                                     |  4 ++
 debian/links                                       |  1 +
 debian/manpages                                    |  1 +
 .../patches/0001-Relax-node-request-version.patch  | 23 ++++++++
 .../0002-Do-not-use-sinon-restore-but-sinon.patch  | 65 ++++++++++++++++++++++
 .../0003-Fix-path-with-version-in-test.patch       | 23 ++++++++
 ...-Disable-a-test-that-need-a-full-git-tree.patch | 46 +++++++++++++++
 debian/patches/series                              |  4 ++
 debian/rules                                       | 45 +++++++++++++++
 debian/tests/control                               |  2 +
 debian/tests/require                               |  3 +
 debian/watch                                       |  9 +++
 20 files changed, 368 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..5e07fa4
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,4 @@
+Notice that the main tools is called coveralls.js in order to avoid
+a conflict with ruby-coveralls package.
+
+ -- Bastien Roucariès <rouca at debian.org>, Thu,  7 Sep 2017 22:38:20 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e9be012
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-coveralls (2.13.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #874584)
+
+ -- Bastien Roucariès <rouca at debian.org>  Wed, 06 Sep 2017 10:41:00 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a0effa8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: node-coveralls
+Section: javascript
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Bastien Roucariès <rouca at debian.org>
+Build-Depends:
+ debhelper (>= 10)
+ , dh-buildinfo
+ , nodejs (>= 6.11.2~)
+ , dpkg-dev (>= 1.17.14)
+ , node-lcov-parse (>= 0.0.10) <!nocheck>
+ , node-request (>= 2.26) <!nocheck>
+ , node-js-yaml (>= 3.6.1) <!nocheck>
+ , node-minimist (>= 1.2.0) <!nocheck>
+ , node-log-driver (>= 1.2.5) <!nocheck>
+ , node-should (>= 8.0) <!nocheck>
+ , node-sinon (>= 1.17) <!nocheck>
+ , mocha (>= 1.20) <!nocheck>
+ , docbook2x <!nodoc>
+Standards-Version: 4.1.0
+Homepage: https://github.com/nickmerwin/node-coveralls#readme
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-coveralls.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-coveralls.git
+
+Package: node-coveralls
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs (>= 6.11.2~)
+ , node-lcov-parse (>= 0.0.10)
+ , node-request (>= 2.26)
+ , node-js-yaml (>= 3.6.1)
+ , node-minimist (>= 1.2.0)
+ , node-log-driver (>= 1.2.5)
+Description: input json-cov output and posts to coveralls.io
+ Coveralls.io is a web service to help you track your code coverage over
+ time, and ensure that all your new code is fully covered.
+ .
+ Coveralls automatically collects your code coverage data, uploads it
+ to their servers and gives you a nice interface to dig into it.
+ .
+ This tools based on node.js allows one to post coverage information
+ to coveralls.io
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..da57954
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,44 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: coveralls
+Upstream-Contact: https://github.com/nickmerwin/node-coveralls/issues
+Source: https://github.com/nickmerwin/node-coveralls#readme
+
+Files: *
+Copyright: 2013-2017 Gregg Caines
+ 2013-2017 Nick Merwin <nick at coveralls.io> (https://coveralls.io)
+ 2013-2017 Joshua Ma <github at joshma.com> (http://joshma.com)
+ 2013-2017 Alan Gutierrez <alan at prettyrobots.com> (http://www.prettyrobots.com/)
+ 2013-2017 Kir Belevich (https://github.com/svg)
+ 2013-2017 Elliot Cable <github at elliottcable.name> (http://elliottcable.name/)
+ 2013-2017 Dmytro Soltys (Slotos) <slotos at gmail.com> (http://slotos.net)
+ 2013-2017 Matt J. Morrison <mattjmorrison at mattjmorrison.com> (http://mattjmorrison.com)
+ 2013-2017 Arpad Borsos <arpad.borsos at googlemail.com> (http://swatinem.de/)
+ 2013-2017 Adam Moss (https://github.com/adam-moss)
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2017 Bastien Roucariès <rouca at debian.org>
+License: BSD-2-Clause
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE HOLDERS OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/coveralls.js.1.xml.in b/debian/coveralls.js.1.xml.in
new file mode 100644
index 0000000..bbf1893
--- /dev/null
+++ b/debian/coveralls.js.1.xml.in
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<refentry id='coveralls.js1'>
+  <refmeta>
+    <refentrytitle>coveralls.js</refentrytitle>
+    <manvolnum>1</manvolnum>
+    <refmiscinfo class='source'>August 2017</refmiscinfo>
+    <refmiscinfo class='manual'>coveralls.js @VERSION@</refmiscinfo>
+  </refmeta>
+  <refnamediv>
+    <refname>coveralls.js</refname>
+    <refpurpose>report coverage to coveralls.io service</refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>coveralls.js</command>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+
+  <refsect1 id='description'><title>DESCRIPTION</title>
+
+  <para>
+  This program takes standard input from any tool that emits the lcov data format (including mocha's) and send it to coveralls.io to report your code coverage there.
+  Once your app is instrumented for coverage, and building, you need to pipe the lcov output to this command.
+  </para>
+
+  </refsect1>
+
+  <refsect1 id="seealso">
+    <title>See Also</title>
+    <simplelist type="inline">
+      <member><citerefentry><refentrytitle>mocha</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> 
+    </simplelist>
+  </refsect1>
+
+</refentry>
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..1db31cd
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,4 @@
+package.json usr/lib/nodejs/coveralls/
+lib usr/lib/nodejs/coveralls/
+index.js usr/lib/nodejs/coveralls/
+bin usr/lib/nodejs/coveralls/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..8f9f3f0
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/coveralls/bin/coveralls.js usr/bin/coveralls.js
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..aa05273
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/coveralls.js.1
diff --git a/debian/patches/0001-Relax-node-request-version.patch b/debian/patches/0001-Relax-node-request-version.patch
new file mode 100644
index 0000000..ec252a2
--- /dev/null
+++ b/debian/patches/0001-Relax-node-request-version.patch
@@ -0,0 +1,23 @@
+From 7d85c508c954e8fd7b930d3569bdef56621c7e2f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien at gmail.com>
+Date: Thu, 7 Sep 2017 22:01:29 +0200
+Subject: Relax node-request version
+
+Forwarded: no
+---
+ package.json | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/package.json b/package.json
+index 1c56d61..425782c 100644
+--- a/package.json
++++ b/package.json
+@@ -34,7 +34,7 @@
+     "lcov-parse": "0.0.10",
+     "log-driver": "1.2.5",
+     "minimist": "1.2.0",
+-    "request": "2.79.0"
++    "request": "^2.26"
+   },
+   "devDependencies": {
+     "istanbul": "0.4.5",
diff --git a/debian/patches/0002-Do-not-use-sinon-restore-but-sinon.patch b/debian/patches/0002-Do-not-use-sinon-restore-but-sinon.patch
new file mode 100644
index 0000000..93066a5
--- /dev/null
+++ b/debian/patches/0002-Do-not-use-sinon-restore-but-sinon.patch
@@ -0,0 +1,65 @@
+From 33b564e566ce8008ad64a4678fc50ac695a418a7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien at gmail.com>
+Date: Thu, 7 Sep 2017 22:04:18 +0200
+Subject: Do not use sinon-restore but sinon
+
+Forwarded: no
+---
+ test/handleInput.js     | 6 +++---
+ test/logger.js          | 2 +-
+ test/sendToCoveralls.js | 4 ++--
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/test/handleInput.js b/test/handleInput.js
+index dc88902..cc51e7a 100644
+--- a/test/handleInput.js
++++ b/test/handleInput.js
+@@ -1,13 +1,13 @@
+ var should = require('should');
+-var sinon = require('sinon-restore');
++var sinon = require('sinon').sandbox.create();
+ var index = require('../index');
+ var fs = require('fs');
+ logger = require('log-driver')({level : false});
+ 
+ describe("handleInput", function(){
+    afterEach(function() {
+-        sinon.restoreAll();
+-      });
++        sinon.restore();
++  });
+   it ("returns an error when there's an error getting options", function(done){
+     sinon.stub(index, 'getOptions', function(cb){
+       return cb("some error", {}); 
+diff --git a/test/logger.js b/test/logger.js
+index 19767df..5430829 100644
+--- a/test/logger.js
++++ b/test/logger.js
+@@ -1,5 +1,5 @@
+ var should = require('should');
+-var sinon = require('sinon-restore');
++var sinon = require('sinon');
+ var index = require('../index');
+ 
+ describe("logger", function(){
+diff --git a/test/sendToCoveralls.js b/test/sendToCoveralls.js
+index 6121bbb..3589bd8 100644
+--- a/test/sendToCoveralls.js
++++ b/test/sendToCoveralls.js
+@@ -1,6 +1,6 @@
+ var should = require('should');
+ var request = require('request');
+-var sinon = require('sinon-restore');
++var sinon = require('sinon').sandbox.create();
+ var index = require('../index');
+ logger = require('log-driver')({level : false});
+ 
+@@ -11,7 +11,7 @@ describe("sendToCoveralls", function(){
+   });
+ 
+   afterEach(function() {
+-    sinon.restoreAll();
++    sinon.restore();
+     if (realCoverallsHost !== undefined) {
+       process.env.COVERALLS_ENDPOINT = realCoverallsHost;
+     } else {
diff --git a/debian/patches/0003-Fix-path-with-version-in-test.patch b/debian/patches/0003-Fix-path-with-version-in-test.patch
new file mode 100644
index 0000000..106ca9d
--- /dev/null
+++ b/debian/patches/0003-Fix-path-with-version-in-test.patch
@@ -0,0 +1,23 @@
+From ca412d01f56d390167f2b14163e271190df37d54 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien at gmail.com>
+Date: Thu, 7 Sep 2017 22:54:41 +0200
+Subject: Fix path with version in test
+
+Forwarded: no
+---
+ test/detectLocalGit.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/detectLocalGit.js b/test/detectLocalGit.js
+index 64da493..f47163f 100644
+--- a/test/detectLocalGit.js
++++ b/test/detectLocalGit.js
+@@ -57,7 +57,7 @@ function _cleanTempGitDir() {
+ 
+ function _deleteFolderRecursive(dir) {
+ 
+-  if (!dir.match('node-coveralls/test')) {
++  if (!dir.match('node-coveralls[^/]*/test')) {
+     throw new Error('Tried to clean a temp git directory that did not match path: node-coveralls/test');
+   }
+ 
diff --git a/debian/patches/0004-Disable-a-test-that-need-a-full-git-tree.patch b/debian/patches/0004-Disable-a-test-that-need-a-full-git-tree.patch
new file mode 100644
index 0000000..9978f00
--- /dev/null
+++ b/debian/patches/0004-Disable-a-test-that-need-a-full-git-tree.patch
@@ -0,0 +1,46 @@
+From b36b85eb162755f0c3fc04b9aec8d92c7f70f94c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien at gmail.com>
+Date: Thu, 7 Sep 2017 23:06:35 +0200
+Subject: Disable a test that need a full git tree
+
+Forwarded; no
+---
+ test/fetchGitData.js | 3 ++-
+ test/getOptions.js   | 2 ++
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/test/fetchGitData.js b/test/fetchGitData.js
+index 012e129..cd42605 100644
+--- a/test/fetchGitData.js
++++ b/test/fetchGitData.js
+@@ -163,6 +163,7 @@ describe("fetchGitData", function(){
+       done();
+     });
+   });
++  /*
+   it("should execute git commands when a valid commit hash is given", function(done) {
+     process.env.COVERALLS_GIT_COMMIT = "HEAD";
+     process.env.COVERALLS_GIT_BRANCH = "master";
+@@ -178,5 +179,5 @@ describe("fetchGitData", function(){
+       options.remotes.length.should.be.above(0);
+       done();
+     });
+-  });
++  });*/
+ });
+diff --git a/test/getOptions.js b/test/getOptions.js
+index 51e4fa0..cea0dee 100644
+--- a/test/getOptions.js
++++ b/test/getOptions.js
+@@ -25,9 +25,11 @@ describe("getBaseOptions", function(){
+   it ("should detect detached git head if no hash passed in", function(done) {
+     testGitDetachedHeadDetection(getBaseOptions, done);
+   });
++  /*
+   it ("should fail local Git detection if no .git directory", function(done) {
+     testNoLocalGit(getBaseOptions, done);
+   });
++  */
+   it ("should set repo_token if it exists", function(done){
+     testRepoToken(getBaseOptions, done);
+   });
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a48e382
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+0001-Relax-node-request-version.patch
+0002-Do-not-use-sinon-restore-but-sinon.patch
+0003-Fix-path-with-version-in-test.patch
+0004-Disable-a-test-that-need-a-full-git-tree.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..93ac998
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+	dh $@
+
+# do not use upstream makefile
+override_dh_auto_build:
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+	NODE_ENV=test mocha -b --reporter spec
+else
+	@echo '**********************************************************'
+	@echo 'Skip test suite                                           '
+	@echo '**********************************************************'
+endif
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod a+x debian/node-coveralls/usr/lib/nodejs/coveralls/bin/coveralls.js
+
+%.1.xml : %.1.xml.in
+	sed -e "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/g" $< > $@
+%.1: %.1.xml
+	cd $(dir $<) &&  docbook2x-man --encoding=utf-8 $(notdir $<)
+
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+override_dh_installman: debian/coveralls.js.1
+	dh_installman --language=C
+else
+override_dh_installman:
+endif
+
+override_dh_installman_clean:
+	rm -rf debian/*.1.xml
+	rm -rf debian/*.1
+
+override_dh_clean: override_dh_installman_clean
+	dh_clean
\ No newline at end of file
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..3cad515
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-coveralls
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..6e9f9d0
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+node -e "require('coveralls');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1793fd2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,9 @@
+version=4
+# It is not recommended use fakeupstream. Please investigate more.
+# Origin url: https://github.com/nickmerwin/node-coveralls
+# Take a look at https://wiki.debian.org/debian/watch/
+# See also fakeupstream: http://anonscm.debian.org/viewvc/qa/trunk/cgi-bin/fakeupstream.cgi?view=markup
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*=// \
+ http://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=npmjs/coveralls .*=coveralls-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))

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



More information about the Pkg-javascript-commits mailing list