[Pkg-javascript-commits] [node-lcov-parse] 44/45: First debian
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:46:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-lcov-parse.
commit cf93b614d284562252acf130e56615b4c22684d7
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Fri Aug 25 14:36:35 2017 +0200
First debian
---
debian/changelog | 2 +-
debian/compat | 2 +-
debian/control | 19 ++++++++++++++-----
debian/copyright | 6 +++++-
debian/dirs | 1 -
debian/links | 1 -
debian/rules | 12 +++++++++++-
debian/tests/control | 5 ++++-
debian/tests/require | 2 +-
debian/tests/runtestsuite | 15 +++++++++++++++
debian/watch | 2 +-
11 files changed, 53 insertions(+), 14 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 3abd11a..42ae9fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-node-lcov-parse (1.0.0~-1) UNRELEASED; urgency=low
+node-lcov-parse (1.0.0+20170612git80d039574ed9-1) UNRELEASED; urgency=low
* Initial release (Closes: #nnnn)
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 dd29844..7f7b5d0 100644
--- a/debian/control
+++ b/debian/control
@@ -4,10 +4,12 @@ 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 (>= 9)
+ debhelper (>= 10)
, dh-buildinfo
- , nodejs
-Standards-Version: 3.9.8
+ , dpkg-dev (>= 1.17.14)
+ , nodejs (>= 6)
+ , node-vows <!nocheck>
+Standards-Version: 4.1.0
Homepage: https://github.com/davglass/lcov-parse#readme
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-lcov-parse.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-lcov-parse.git
@@ -16,8 +18,15 @@ Package: node-lcov-parse
Architecture: all
Depends:
${misc:Depends}
- , nodejs
+ , nodejs (>= 6)
Description: Parse lcov results files and return JSON
- FIX_ME long description
+ This modules allows ones to parse lcov files and to return json reprensentation
+ of these files.
+ .
+ lcov is a graphical front-end for GCC's coverage testing tool gcov.
+ It collects gcov data for multiple source files and creates HTML pages
+ containing the source code annotated with coverage information. It
+ also adds overview pages for easy navigation within the file
+ structure.
.
Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index fafc5a7..d18e0f4 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -6,7 +6,11 @@ Files-Excluded: coverage/*
Comment: Data that FTBFS
Files: *
-Copyright: 2017 Dav Glass <davglass at gmail.com>
+Copyright: 2012, Yahoo! Inc.
+ 2012-2017, Dav Glass <davglass at gmail.com>
+ 2017, Alan Gutierrez <alan at prettyrobots.com>
+ 2017, Gerard Escalante <gerard at saygo.ca>
+ 2017, Daniel Howe <dhowe at swipeclock.com>
License: BSD-3-Clause
Files: debian/*
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index e772481..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/bin
diff --git a/debian/links b/debian/links
deleted file mode 100644
index 3404f14..0000000
--- a/debian/links
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/nodejs/lcov-parse/bin/cli.js usr/bin/lcov-parse
diff --git a/debian/rules b/debian/rules
index de57af0..5541068 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,17 @@
#override_dh_auto_build:
-#override_dh_auto_test:
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ vows -- --spec ./tests/*.js
+else
+ @echo '**********************************************************'
+ @echo 'Skip test suite '
+ @echo '**********************************************************'
+endif
+override_dh_fixperms:
+ dh_fixperms
+ chmod a+x debian/node-lcov-parse/usr/lib/nodejs/lcov-parse/bin/cli.js
diff --git a/debian/tests/control b/debian/tests/control
index 2451308..4c28d19 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
Tests: require
-Depends: node-lcov-parse
+Depends: node-lcov-parse, nodejs (>= 6)
+
+Tests: runtestsuite
+Depends: node-lcov-parse, node-vows
diff --git a/debian/tests/require b/debian/tests/require
index 47b3ef6..5dc4aa5 100644
--- a/debian/tests/require
+++ b/debian/tests/require
@@ -1,3 +1,3 @@
#!/bin/sh
set -e
-nodejs -e "require('lcov-parse');"
+node -e "require('lcov-parse');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..0d5eb85
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='des.js'
+SEDCMD="s,require\s*[(]\s*'[.][.],require('$PACKAGE'),g"
+
+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 "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+
+cd $tmpdir && vows -- --spec ./tests/*.js
diff --git a/debian/watch b/debian/watch
index 9a9f2a1..29813ee 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
-version=3
+version=4
# It is not recommended use fakeupstream. Please investigate more.
# Origin url: https://github.com/davglass/lcov-parse
# Take a look at https://wiki.debian.org/debian/watch/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-lcov-parse.git
More information about the Pkg-javascript-commits
mailing list