Skip to content

Commit dc900de

Browse files
author
Andy
committed
Merge pull request #8627 from Microsoft/no_lint
Add option to turn off linting during `jake runtests`
2 parents ef75346 + 4e6bd71 commit dc900de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Jakefile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ function runConsoleTests(defaultReporter, defaultSubsets) {
712712
colors = process.env.colors || process.env.color
713713
colors = colors ? ' --no-colors ' : ' --colors ';
714714
reporter = process.env.reporter || process.env.r || defaultReporter;
715+
var lintFlag = process.env.lint !== 'false';
715716

716717
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally
717718
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
@@ -730,7 +731,7 @@ function runConsoleTests(defaultReporter, defaultSubsets) {
730731
console.log(cmd);
731732
exec(cmd, function () {
732733
deleteTemporaryProjectOutput();
733-
if (i === 0) {
734+
if (lintFlag && i === 0) {
734735
var lint = jake.Task['lint'];
735736
lint.addListener('complete', function () {
736737
complete();
@@ -750,7 +751,7 @@ task("runtests-parallel", ["build-rules", "tests", builtLocalDirectory], functio
750751
runConsoleTests('min', ['compiler', 'conformance', 'Projects', 'fourslash']);
751752
}, {async: true});
752753

753-
desc("Runs the tests using the built run.js file. Optional arguments are: t[ests]=regex r[eporter]=[list|spec|json|<more>] d[ebug]=true color[s]=false.");
754+
desc("Runs the tests using the built run.js file. Optional arguments are: t[ests]=regex r[eporter]=[list|spec|json|<more>] d[ebug]=true color[s]=false lint=true.");
754755
task("runtests", ["build-rules", "tests", builtLocalDirectory], function() {
755756
runConsoleTests('mocha-fivemat-progress-reporter', []);
756757
}, {async: true});

0 commit comments

Comments
 (0)