diff options
author | Jason Wray <jason@mapbox.com> | 2018-08-07 18:48:56 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2018-08-08 12:04:18 -0400 |
commit | 2dc18d2adac9f87b1a7c91d2e1de2f4811b896e9 (patch) | |
tree | e80b5aff9405484455652c5adea5af4ec7feeb67 | |
parent | 20d21cb7bcc6fe7639f546c053cfac1145430c4c (diff) | |
download | qtlocation-mapboxgl-2dc18d2adac9f87b1a7c91d2e1de2f4811b896e9.tar.gz |
[build] Print binary size stats to CI logs, too
-rwxr-xr-x | scripts/check_binary_size.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/check_binary_size.js b/scripts/check_binary_size.js index 9caa1b9998..5a8aa70b1b 100755 --- a/scripts/check_binary_size.js +++ b/scripts/check_binary_size.js @@ -51,9 +51,7 @@ function getPriorSize() { console.log('No matching check found.'); return Promise.resolve(null); } - const prior = +run.output.summary.match(/`.*` is (\d+) bytes/)[1]; - console.log(`Prior size was ${prettyBytes(prior)}.`); - return prior; + return +run.output.summary.match(/`.*` is (\d+) bytes/)[1]; }); } @@ -71,6 +69,8 @@ github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATIO } })(); + console.log(`${label}: ${title} (${size} bytes)`); + return github.checks.create({ owner: 'mapbox', repo: 'mapbox-gl-native', |