Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
estherkim committed Feb 15, 2019
1 parent 7db4b28 commit 4b63cd7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 27 deletions.
2 changes: 1 addition & 1 deletion build-system/pr-check/dist-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const timedExecOrDie =
function runSinglePassTest_() {
timedExecOrDie('gulp clean');
timedExecOrDie('gulp dist --fortesting --single_pass --psuedonames');
timedExecOrDie('gulp test --integration' +
timedExecOrDie('gulp test --integration ' +
'--nobuild --compiled --single_pass --headless');
timedExecOrDie('gulp clean');
}
Expand Down
2 changes: 1 addition & 1 deletion build-system/pr-check/local-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function main() {
buildTargets.has('BUILD_SYSTEM') ||
buildTargets.has('INTEGRATION_TEST')) {

timedExecOrDie('gulp test --integraton --nobuild --headless --coverage');
timedExecOrDie('gulp test --integration --nobuild --headless --coverage');
ranTests = true;
}

Expand Down
59 changes: 34 additions & 25 deletions build-system/pr-check/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,22 @@ const BUILD_OUTPUT_STORAGE_LOCATION = 'gs://amp-travis-builds';
*/
function printChangeSummary(fileName) {
const fileLogPrefix = colors.bold(colors.yellow(`${fileName}:`));
console.log(fileLogPrefix, colors.cyan('origin/master'),
'is currently at commit',
colors.cyan(shortSha(gitTravisMasterBaseline())));
console.log(fileLogPrefix,
'Testing the following changes at commit',
colors.cyan(shortSha(travisPullRequestSha())));

console.log(
`${fileLogPrefix} ${colors.cyan('origin/master')} is currently at ` +
`commit ${colors.cyan(shortSha(gitTravisMasterBaseline()))}`);
console.log(
`${fileLogPrefix} Testing the following changes at commit ` +
`${colors.cyan(shortSha(travisPullRequestSha()))}`);

const filesChanged = gitDiffStatMaster();
console.log(filesChanged);

const branchPoint = gitMergeBaseMaster();
console.log(fileLogPrefix, 'Commit log since branch',
colors.cyan(gitBranchName()), 'was forked from',
colors.cyan('master'), 'at', colors.cyan(shortSha(branchPoint)) + ':');
console.log(
`${fileLogPrefix} Commit log since branch ` +
`${colors.cyan(gitBranchName())} was forked from ` +
`${colors.cyan('master')} at ${colors.cyan(shortSha(branchPoint))}:`);
console.log(gitDiffCommitLog() + '\n');
}

Expand Down Expand Up @@ -144,16 +146,20 @@ function downloadBuildOutput(functionName) {
const fileLogPrefix = colors.bold(colors.yellow(`${functionName}:`));
const buildOutputDownloadUrl =
`${BUILD_OUTPUT_STORAGE_LOCATION}/${BUILD_OUTPUT_FILE}`;
console.log(fileLogPrefix,
'Downloading build output from',
colors.cyan(buildOutputDownloadUrl) + '...');

console.log(
`${fileLogPrefix} 'Downloading build output from ` +
`${colors.cyan(buildOutputDownloadUrl)}...`);
exec('echo travis_fold:start:download_results');
execOrDie(`gsutil cp ${buildOutputDownloadUrl} ${BUILD_OUTPUT_FILE}`);
console.log(fileLogPrefix,
'Extracting',
colors.cyan(BUILD_OUTPUT_FILE) + '...');
exec('echo travis_fold:end:download_results');

console.log(
`${fileLogPrefix} Extracting ${colors.cyan(BUILD_OUTPUT_FILE)}...`);
exec('echo travis_fold:start:unzip_results');
execOrDie(`unzip -o ${BUILD_OUTPUT_FILE}`);
exec('echo travis_fold:end:unzip_results');

console.log(fileLogPrefix, 'Verifying extracted files...');
exec('echo travis_fold:start:verify_unzip_results');
execOrDie(`ls -la ${BUILD_OUTPUT_DIRS}`);
Expand All @@ -166,19 +172,22 @@ function downloadBuildOutput(functionName) {
*/
function uploadBuildOutput(functionName) {
const fileLogPrefix = colors.bold(colors.yellow(`${functionName}:`));
console.log(fileLogPrefix,
'Compressing contents of directories',
colors.cyan(BUILD_OUTPUT_DIRS),
' into', colors.cyan(BUILD_OUTPUT_FILE) + '...');

console.log(
`${fileLogPrefix} Compressing contents of directories ` +
`${colors.cyan(BUILD_OUTPUT_DIRS)} into ` +
`${colors.cyan(BUILD_OUTPUT_FILE)}...`);
exec('echo travis_fold:start:zip_results');
execOrDie(`zip -r ${BUILD_OUTPUT_FILE} ${BUILD_OUTPUT_DIRS}`);
exec('echo travis_fold:end:zip_results');
console.log(fileLogPrefix,
'Uploading',
colors.cyan(BUILD_OUTPUT_FILE),
'to', colors.cyan(BUILD_OUTPUT_STORAGE_LOCATION) + '...');
execOrDie(`gsutil -m cp -r ${BUILD_OUTPUT_FILE} `
+ `${BUILD_OUTPUT_STORAGE_LOCATION}`);

console.log(
`${fileLogPrefix} Uploading ${colors.cyan(BUILD_OUTPUT_FILE)} ` +
`to ${colors.cyan(BUILD_OUTPUT_STORAGE_LOCATION)}...`);
exec('echo travis_fold:start:upload_results');
execOrDie(`gsutil -m cp -r ${BUILD_OUTPUT_FILE} ` +
`${BUILD_OUTPUT_STORAGE_LOCATION}`);
exec('echo travis_fold:end:upload_results');
}


Expand Down

0 comments on commit 4b63cd7

Please sign in to comment.