Issue #2654 - Lint with Travis-CI
This commit is contained in:
parent
43d6c6f1ab
commit
442bd8bd5a
3
.travis.yml
Normal file
3
.travis.yml
Normal file
@ -0,0 +1,3 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 0.8
|
2
make.js
2
make.js
@ -994,7 +994,7 @@ target.jshint = function() {
|
||||
//'extensions/chrome/*.js'
|
||||
];
|
||||
|
||||
exec('jshint --reporter test/reporter.js ' + LINT_FILES.join(' '));
|
||||
exit(exec('./node_modules/.bin/jshint --reporter test/reporter.js ' + LINT_FILES.join(' ')).code);
|
||||
};
|
||||
|
||||
//
|
||||
|
14
package.json
Normal file
14
package.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "pdf.js",
|
||||
"version": "0.7.169",
|
||||
"dependencies": {
|
||||
"jshint": "git://github.com/jshint/jshint.git#42ace75a"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node make jshint"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mozilla/pdf.js.git"
|
||||
}
|
||||
}
|
@ -23,6 +23,9 @@ module.exports = {
|
||||
if (str) {
|
||||
process.stdout.write(str + "\n" + len + " error" +
|
||||
((len === 1) ? "" : "s") + "\n");
|
||||
process.exit(2);
|
||||
} else {
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user