summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Barbosa <nadiabarbosa@me.com>2019-04-17 16:34:00 -0700
committerNadia Barbosa <nadiabarbosa@me.com>2019-04-17 16:34:00 -0700
commitfd4845867fd256040c022b99fae3e005bf9f0fc1 (patch)
tree177f69e3a8a309ad471b05a345d88470fbc28d05
parentf456e054043da4af4793559733f1583df9b31c8d (diff)
downloadqtlocation-mapboxgl-fd4845867fd256040c022b99fae3e005bf9f0fc1.tar.gz
Log CI size details
-rwxr-xr-xscripts/check_binary_size.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/check_binary_size.js b/scripts/check_binary_size.js
index 5a8aa70b1b..8a8b337a0d 100755
--- a/scripts/check_binary_size.js
+++ b/scripts/check_binary_size.js
@@ -51,6 +51,7 @@ function getPriorSize() {
console.log('No matching check found.');
return Promise.resolve(null);
}
+ console.log(`RUN: ${run.output.summary}`)
return +run.output.summary.match(/`.*` is (\d+) bytes/)[1];
});
}
@@ -61,6 +62,8 @@ github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATIO
getPriorSize().then(prior => {
const title = (() => {
if (prior) {
+ console.log("change = size - prior");
+ console.log(`${change} = ${size} - ${prior}`)
const change = size - prior;
const percent = (change / prior) * 100;
return `${change >= 0 ? '+' : ''}${prettyBytes(change)} ${percent.toFixed(3)}% (${prettyBytes(size)})`;