Remove jake (hopefully for real this time) (#29085)

* Remove jake (hopefully for real this time)

* Fix gulpfile non-lkg build, add sanity-check build to posttest on CI, accept older baseline style to go with lkgd build

* More docs/scripts jake -> gulp
This commit is contained in:
Wesley Wigham
2019-02-20 15:32:15 -08:00
committed by GitHub
parent 4e3efc2e90
commit b67f2d6bdf
12 changed files with 54 additions and 903 deletions

View File

@@ -116,6 +116,17 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
errorStatus = exitCode;
error = new Error(`Process exited with status code ${errorStatus}.`);
}
else if (process.env.CI === "true") {
// finally, do a sanity check and build the compiler with the built version of itself
log.info("Starting sanity check build...");
// Cleanup everything except lint rules (we'll need those later and would rather not waste time rebuilding them)
await exec("gulp", ["clean-tsc", "clean-services", "clean-tsserver", "clean-lssl", "clean-tests"], { cancelToken });
const { exitCode } = await exec("gulp", ["local", "--lkg=false"], { cancelToken });
if (exitCode !== 0) {
errorStatus = exitCode;
error = new Error(`Sanity check build process exited with status code ${errorStatus}.`);
}
}
}
catch (e) {
errorStatus = undefined;
@@ -148,7 +159,7 @@ async function cleanTestDirs() {
exports.cleanTestDirs = cleanTestDirs;
/**
* used to pass data from jake command line directly to run.js
* used to pass data from gulp command line directly to run.js
* @param {string} tests
* @param {string} runners
* @param {boolean} light