Skip to content

Commit 2d7b217

Browse files
committed
linter runs after tests via jake
1 parent 19b208c commit 2d7b217

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Jakefile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,14 @@ task("runtests", ["tests", builtLocalDirectory], function() {
655655
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
656656
var cmd = host + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run;
657657
console.log(cmd);
658-
exec(cmd, deleteTemporaryProjectOutput);
658+
exec(cmd, function() {
659+
deleteTemporaryProjectOutput();
660+
var lint = jake.Task['lint'];
661+
lint.addListener('complete', function () {
662+
complete();
663+
});
664+
lint.invoke();
665+
});
659666
}, {async: true});
660667

661668
desc("Generates code coverage data via instanbul");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"scripts": {
4242
"pretest": "jake tests",
43-
"test": "jake runtests && npm run lint",
43+
"test": "jake runtests",
4444
"build": "npm run build:compiler && npm run build:tests",
4545
"build:compiler": "jake local",
4646
"build:tests": "jake tests",

0 commit comments

Comments
 (0)