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