linter runs after tests via jake

This commit is contained in:
Wesley Wigham 2015-10-02 12:45:33 -07:00
parent 19b208cec6
commit 2d7b217d95
2 changed files with 9 additions and 2 deletions

View File

@ -655,7 +655,14 @@ task("runtests", ["tests", builtLocalDirectory], function() {
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
var cmd = host + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run;
console.log(cmd);
exec(cmd, deleteTemporaryProjectOutput);
exec(cmd, function() {
deleteTemporaryProjectOutput();
var lint = jake.Task['lint'];
lint.addListener('complete', function () {
complete();
});
lint.invoke();
});
}, {async: true});
desc("Generates code coverage data via instanbul");

View File

@ -40,7 +40,7 @@
},
"scripts": {
"pretest": "jake tests",
"test": "jake runtests && npm run lint",
"test": "jake runtests",
"build": "npm run build:compiler && npm run build:tests",
"build:compiler": "jake local",
"build:tests": "jake tests",