From d6c2ced9e64900f78697cb649b5b33b4b601689c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 7 Dec 2015 15:40:36 +0100 Subject: [PATCH] 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 bb36b4722..14c1ac6c6 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 a4ff8de6c..ca4d41ec8 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",