[Pkg-javascript-commits] [grunt] 01/01: enable tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Nov 27 18:47:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository grunt.
commit 9e6fcf11a4813997aac279d2adce83acd0cf2607
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Nov 28 00:14:45 2016 +0530
enable tests
---
debian/changelog | 6 ++++++
debian/control | 18 ++++++++++++++++++
debian/patches/adapt-gruntfile.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 13 ++++---------
debian/tests/control | 3 +++
6 files changed, 59 insertions(+), 9 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 435abbd..b345755 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+grunt (1.0.1-4) UNRELEASED; urgency=medium
+
+ * Enable tests
+
+ -- Pirate Praveen <praveen at debian.org> Mon, 28 Nov 2016 00:14:30 +0530
+
grunt (1.0.1-3) unstable; urgency=medium
* Add node-rimraf to depends (Closes: #845012)
diff --git a/debian/control b/debian/control
index 9ffe2c8..de3b7f9 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,24 @@ Uploaders: Gustavo Noronha Silva <kov at debian.org>,
Sruthi Chandran <srud at disroot.org>,
Pirate Praveen <praveen at debian.org>
Build-Depends: debhelper (>= 9)
+ , coffeescript (>= 1.10.0~)
+ , node-dateformat (>= 1.0.11)
+ , node-eventemitter2 (>= 0.4.13)
+ , node-exit (>= 0.1.1)
+ , node-findup-sync (>= 0.3.0)
+ , node-glob (>= 4.0.5)
+ , node-grunt-cli (>= 1.2.0)
+ , node-grunt-known-options (>= 1.1.0)
+ , node-grunt-legacy-log (>= 1.0.0)
+ , node-grunt-legacy-util (>= 1.0.0)
+ , node-iconv-lite (>= 0.4.13)
+ , node-js-yaml (>= 3.5.2)
+ , node-minimatch (>= 3.0.0)
+ , node-nopt (>= 3.0.6)
+ , node-path-is-absolute (>= 1.0.0)
+ , node-rimraf (>= 2.2.8)
+ , node-grunt-contrib-nodeunit
+ , node-difflet
Standards-Version: 3.9.8
Homepage: http://gruntjs.com/
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/grunt.git
diff --git a/debian/patches/adapt-gruntfile.patch b/debian/patches/adapt-gruntfile.patch
new file mode 100644
index 0000000..0a4c8d8
--- /dev/null
+++ b/debian/patches/adapt-gruntfile.patch
@@ -0,0 +1,27 @@
+Index: grunt/Gruntfile.js
+===================================================================
+--- grunt.orig/Gruntfile.js
++++ grunt/Gruntfile.js
+@@ -50,17 +50,17 @@ module.exports = function(grunt) {
+ });
+
+ // These plugins provide necessary tasks.
+- grunt.loadNpmTasks('grunt-contrib-jshint');
+- grunt.loadNpmTasks('grunt-jscs');
+- grunt.loadNpmTasks('grunt-contrib-nodeunit');
+- grunt.loadNpmTasks('grunt-contrib-watch');
++ //grunt.loadNpmTasks('grunt-contrib-jshint');
++ //grunt.loadNpmTasks('grunt-jscs');
++ grunt.loadNpmTasks('grunt-contrib-nodeunit','/usr/lib/nodejs');
++ //grunt.loadNpmTasks('grunt-contrib-watch');
+
+ // Some internal tasks. Maybe someday these will be released.
+ grunt.loadTasks('internal-tasks');
+
+ // "npm test" runs these tasks
+ grunt.registerTask('test', '', function(reporter) {
+- grunt.task.run(['jshint', 'jscs', 'nodeunit:' + (reporter || 'all'), 'subgrunt']);
++ grunt.task.run(['nodeunit:' + (reporter || 'all'), 'subgrunt']);
+ });
+
+ // Default task.
diff --git a/debian/patches/series b/debian/patches/series
index b963fdd..950be83 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
fix-nodejs.patch
add-root-variable.patch
+adapt-gruntfile.patch
diff --git a/debian/rules b/debian/rules
index b760bee..13c4d8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,8 @@
#!/usr/bin/make -f
# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
%:
- dh $@
+ dh $@
+
+override_dh_auto_test:
+ bin/grunt test
diff --git a/debian/tests/control b/debian/tests/control
index 0a14cca..6a46264 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
Tests: require
Depends: grunt
+
+Test-Command: grunt test
+Depends: @, @builddeps@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/grunt.git
More information about the Pkg-javascript-commits
mailing list