[Pkg-javascript-commits] [node-grunt-replace] 07/09: Prepare for running the testsuite when grunt-mocha-testis packaged

Ross Gammon ross-guest at moszumanska.debian.org
Sat Oct 21 15:36:02 UTC 2017


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

ross-guest pushed a commit to branch master
in repository node-grunt-replace.

commit 4ed0c0c632d48940a4a62421804e7f1e3cc2f97c
Author: Ross Gammon <rossgammon at mail.dk>
Date:   Sat Oct 21 16:41:02 2017 +0200

    Prepare for running the testsuite when grunt-mocha-testis packaged
---
 debian/control                    |  6 +++++-
 debian/patches/global_tasks.patch | 25 +++++++++++++++++++++++++
 debian/patches/series             |  1 +
 debian/rules                      |  4 +++-
 4 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 21ee7dc..a139f94 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,11 @@ Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.deb
 Uploaders: Ross Gammon <rossgammon at debian.org>
 Build-Depends: debhelper (>= 9),
                dh-buildinfo,
-               nodejs
+               nodejs,
+               grunt,
+               node-grunt-contrib-clean,
+               node-applause,
+               node-file-sync-cmp
 Standards-Version: 4.1.1
 Homepage: https://github.com/outatime/grunt-replace#readme
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-grunt-replace.git
diff --git a/debian/patches/global_tasks.patch b/debian/patches/global_tasks.patch
new file mode 100644
index 0000000..8d5a9bc
--- /dev/null
+++ b/debian/patches/global_tasks.patch
@@ -0,0 +1,25 @@
+Description: Search for grunt modules globally
+ Grunt expects to find plugin modules locally. This patch helps grunt find
+ the system-wide installed version.
+ Also, jshint will probably never be in Debian due to the "no evil" license,
+ so grunt-contrib-jshint has been disabled in the Gruntfile.
+Author: Ross Gammon <rossgammon at debian.org>
+Forwarded: not-needed
+Last-Update: 2017-10-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- node-grunt-replace.orig/Gruntfile.js
++++ node-grunt-replace/Gruntfile.js
+@@ -116,9 +116,9 @@
+ 
+   grunt.loadTasks('tasks');
+ 
+-  grunt.loadNpmTasks('grunt-contrib-jshint');
+-  grunt.loadNpmTasks('grunt-contrib-clean');
+-  grunt.loadNpmTasks('grunt-mocha-test');
++//  grunt.loadNpmTasks('grunt-contrib-jshint');
++  grunt.loadNpmTasks('grunt-contrib-clean','/usr/lib/nodejs');
++  grunt.loadNpmTasks('grunt-mocha-test','/usr/lib/nodejs');
+ 
+   grunt.registerTask('test', [
+     'clean',
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9a9dedb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+global_tasks.patch
diff --git a/debian/rules b/debian/rules
index eef1c33..748b460 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,4 +8,6 @@
 	dh $@
 
 override_dh_auto_test:
-	grunt test
+	# Until grunt-mocha-test is package for Debian, the upstream
+	# testsuite has to be disabled for now.
+	#grunt test

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



More information about the Pkg-javascript-commits mailing list