Skip to content

Commit

Permalink
🏗 Build runtime for visual-diff only commits (#21002)
Browse files Browse the repository at this point in the history
  • Loading branch information
estherkim committed Feb 22, 2019
1 parent 769ea6d commit 6efcfc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build-system/pr-check/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ function main() {
buildTargets.has('INTEGRATION_TEST') ||
buildTargets.has('BUILD_SYSTEM') ||
buildTargets.has('DEV_DASHBOARD') ||
buildTargets.has('FLAG_CONFIG')) {
buildTargets.has('FLAG_CONFIG') ||
buildTargets.has('VISUAL_DIFF')) {

timedExecOrDie('gulp update-packages');
timedExecOrDie('gulp build --fortesting');
uploadBuildOutput(FILENAME);
} else {
console.log(`${FILELOGPREFIX} Skipping ` + colors.cyan('Build ') +
'because this commit does not affect the runtime, ' +
'build system, test files, or the dev dashboard');
'because this commit does not affect the runtime, build system, ' +
'test files, visual diff files, or the dev dashboard');
}
}

Expand Down
2 changes: 2 additions & 0 deletions build-system/pr-check/dist-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const timedExecOrDie =

function runSinglePassTest_() {
timedExecOrDie('gulp clean');
timedExecOrDie('gulp update-packages');
timedExecOrDie('gulp dist --fortesting --single_pass --psuedonames');
timedExecOrDie('gulp test --integration ' +
'--nobuild --compiled --single_pass --headless');
Expand All @@ -56,6 +57,7 @@ function main() {
let ranTests = false;

if (buildTargets.has('RUNTIME')) {
timedExecOrDie('gulp update-packages');
timedExecOrDie('gulp dist --fortesting --noextensions');
timedExecOrDie('gulp bundle-size --on_pr_build');
ranTests = true;
Expand Down
1 change: 1 addition & 0 deletions build-system/pr-check/remote-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function main() {
return 0;
}
downloadBuildOutput(FILENAME);
timedExecOrDie('gulp update-packages');
startSauceConnect(FILENAME);

if (buildTargets.has('RUNTIME') ||
Expand Down

0 comments on commit 6efcfc1

Please sign in to comment.