[Pkg-javascript-commits] [node-umd] 05/18: Add tesing

Bastien Roucariès rouca at moszumanska.debian.org
Mon Apr 17 07:38:17 UTC 2017


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

rouca pushed a commit to tag debian-3.0.1+ds-1
in repository node-umd.

commit 75b12fd14fb3b2f064f2e4d32954ac9b21e4a4e6
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Apr 14 14:07:31 2017 +0200

    Add tesing
---
 debian/control | 13 ++++++++++++-
 debian/rules   |  9 ++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 5e9351e..fc5f1ef 100644
--- a/debian/control
+++ b/debian/control
@@ -6,10 +6,12 @@ Uploaders: Bastien Roucariès <rouca at debian.org>
 Build-Depends:
  debhelper (>= 10)
  , dh-buildinfo
+ , dpkg-dev (>= 1.17.14)
  , nodejs (>= 4.7)
  , dos2unix
  , node-uglify
  , node-brfs
+ , mocha <!nocheck>
 Standards-Version: 3.9.8
 Homepage: https://github.com/ForbesLindesay/umd
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-umd.git
@@ -21,6 +23,15 @@ Depends:
  ${misc:Depends}
  , nodejs (>= 4.7)
 Description: Universal Module Definition for use in automated build systems
- FIX_ME long description
+ UMD (Universal Module Definition) is a common pattern used in javascript
+ programming allowing one to write once a loader working in different
+ context (server, browser). This loader is compatible wiht different
+ API like RequireJS, AMD  or CommonJs.
+ .
+ This module provides:
+  - simple synchronous wrapping of a string
+  - return style module support
+  - CommonJS support
+  - support preventing internal UMDs from conflicting
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/rules b/debian/rules
index 15b825d..6c14034 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,14 @@ override_dh_auto_build:
 	brfs source.js > index.js
 	dos2unix index.js
 
-#override_dh_auto_test:
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	mocha -R spec test/*.js
+else
+	@echo '**********************************************************'
+	@echo 'Skip test suite                                           '
+	@echo '**********************************************************'
+endif
 
 
 

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



More information about the Pkg-javascript-commits mailing list