[Pkg-javascript-commits] [pdf.js] 95/115: Let Travis lint using `node make lint`, instead of a hard-coded command

David Prévot taffit at moszumanska.debian.org
Wed Dec 16 20:03:20 UTC 2015


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

taffit pushed a commit to branch master
in repository pdf.js.

commit d6c2ced9e64900f78697cb649b5b33b4b601689c
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Mon Dec 7 15:40:36 2015 +0100

    Let Travis lint using `node make lint`, instead of a hard-coded command
---
 make.js      | 6 ++++--
 package.json | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/make.js b/make.js
index bb36b47..14c1ac6 100644
--- a/make.js
+++ b/make.js
@@ -1492,9 +1492,11 @@ target.lint = function() {
   var options = '--extra-ext .jsm';
 
   var exitCode = exec('"' + jshintPath + '" ' + options + ' .').code;
-  if (exitCode === 0) {
-    echo('files checked, no errors found');
+  if (exitCode !== 0) {
+    exit(1);
   }
+
+  echo('files checked, no errors found');
 };
 
 //
diff --git a/package.json b/package.json
index a4ff8de..ca4d41e 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
     "yargs": "^3.14.0"
   },
   "scripts": {
-    "test": "node ./node_modules/.bin/jshint --extra-ext .jsm ."
+    "test": "node make lint"
   },
   "repository": {
     "type": "git",

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



More information about the Pkg-javascript-commits mailing list