Merge pull request #6733 from Snuffleupagus/travis-lint-with-make

Let Travis lint using `node make lint`, instead of a hard-coded command
This commit is contained in:
Tim van der Meij 2015-12-10 21:40:10 +01:00
commit c6e9be8b24
2 changed files with 5 additions and 3 deletions

View File

@ -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');
};
//

View File

@ -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",