From 2dc18d2adac9f87b1a7c91d2e1de2f4811b896e9 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 7 Aug 2018 18:48:56 -0400 Subject: [PATCH] [build] Print binary size stats to CI logs, too --- scripts/check_binary_size.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_binary_size.js b/scripts/check_binary_size.js index 9caa1b999..5a8aa70b1 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',