@@ -122,17 +122,17 @@ export async function runConsoleTests(runJs, defaultReporter, runInParallel, _wa
122122 errorStatus = exitCode ;
123123 error = new Error ( `Process exited with status code ${ errorStatus } .` ) ;
124124 }
125- // else if (cmdLineOptions.ci && runJs.startsWith("built")) {
126- // // finally, do a sanity check and build the compiler with the built version of itself
127- // log.info("Starting sanity check build...");
128- // // Cleanup everything except lint rules (we'll need those later and would rather not waste time rebuilding them)
129- // await exec("gulp", ["clean-tsc", "clean-services", "clean-tsserver", "clean-lssl", "clean-tests "]);
130- // const { exitCode } = await exec("gulp", ["local ", "--lkg=false "]);
131- // if (exitCode !== 0) {
132- // errorStatus = exitCode;
133- // error = new Error(`Sanity check build process exited with status code ${errorStatus}.`);
134- // }
135- // }
125+ else if ( cmdLineOptions . ci && runJs . startsWith ( "built" ) ) {
126+ // finally, do a sanity check and build the compiler with the built version of itself
127+ log . info ( "Starting sanity check build..." ) ;
128+ // Cleanup everything except lint rules (we'll need those later and would rather not waste time rebuilding them)
129+ await exec ( "gulp" , [ "clean-src " ] ) ;
130+ const { exitCode } = await exec ( "gulp" , [ "build-src " , "--built " ] ) ;
131+ if ( exitCode !== 0 ) {
132+ errorStatus = exitCode ;
133+ error = new Error ( `Sanity check build process exited with status code ${ errorStatus } .` ) ;
134+ }
135+ }
136136 }
137137 catch ( e ) {
138138 errorStatus = undefined ;
0 commit comments