Merge pull request #8627 from Microsoft/no_lint
Add option to turn off linting during `jake runtests`
This commit is contained in:
commit
dc900deea5
|
@ -712,6 +712,7 @@ function runConsoleTests(defaultReporter, defaultSubsets) {
|
||||||
colors = process.env.colors || process.env.color
|
colors = process.env.colors || process.env.color
|
||||||
colors = colors ? ' --no-colors ' : ' --colors ';
|
colors = colors ? ' --no-colors ' : ' --colors ';
|
||||||
reporter = process.env.reporter || process.env.r || defaultReporter;
|
reporter = process.env.reporter || process.env.r || defaultReporter;
|
||||||
|
var lintFlag = process.env.lint !== 'false';
|
||||||
|
|
||||||
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally
|
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally
|
||||||
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
|
// 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) {
|
||||||
console.log(cmd);
|
console.log(cmd);
|
||||||
exec(cmd, function () {
|
exec(cmd, function () {
|
||||||
deleteTemporaryProjectOutput();
|
deleteTemporaryProjectOutput();
|
||||||
if (i === 0) {
|
if (lintFlag && i === 0) {
|
||||||
var lint = jake.Task['lint'];
|
var lint = jake.Task['lint'];
|
||||||
lint.addListener('complete', function () {
|
lint.addListener('complete', function () {
|
||||||
complete();
|
complete();
|
||||||
|
@ -750,7 +751,7 @@ task("runtests-parallel", ["build-rules", "tests", builtLocalDirectory], functio
|
||||||
runConsoleTests('min', ['compiler', 'conformance', 'Projects', 'fourslash']);
|
runConsoleTests('min', ['compiler', 'conformance', 'Projects', 'fourslash']);
|
||||||
}, {async: true});
|
}, {async: true});
|
||||||
|
|
||||||
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.");
|
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.");
|
||||||
task("runtests", ["build-rules", "tests", builtLocalDirectory], function() {
|
task("runtests", ["build-rules", "tests", builtLocalDirectory], function() {
|
||||||
runConsoleTests('mocha-fivemat-progress-reporter', []);
|
runConsoleTests('mocha-fivemat-progress-reporter', []);
|
||||||
}, {async: true});
|
}, {async: true});
|
||||||
|
|
Loading…
Reference in a new issue