diff options
author | Nadia Barbosa <nadiabarbosa@me.com> | 2019-03-13 17:49:07 -0700 |
---|---|---|
committer | Nadia Barbosa <nadiabarbosa@me.com> | 2019-03-13 17:49:07 -0700 |
commit | 8c0fcbbb88d667fb8bce34691c81f9a53cf475f0 (patch) | |
tree | 0dd4febffa27b6691fe445438ea509ef9834d158 | |
parent | 9b57a04982b50023db0ed53d11661d404f19e8cf (diff) | |
download | qtlocation-mapboxgl-8c0fcbbb88d667fb8bce34691c81f9a53cf475f0.tar.gz |
Debug with emoji
-rwxr-xr-x | platform/ios/scripts/metrics.sh | 3 | ||||
-rwxr-xr-x | scripts/publish_binary_size.js | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/platform/ios/scripts/metrics.sh b/platform/ios/scripts/metrics.sh index 080dce7427..98b922f938 100755 --- a/platform/ios/scripts/metrics.sh +++ b/platform/ios/scripts/metrics.sh @@ -17,10 +17,11 @@ scripts/check_binary_size.js "build/ios/pkg/dynamic/Mapbox-stripped-x86_64" "iO # Track overall library size scripts/check_binary_size.js "build/ios/pkg/dynamic/Mapbox-stripped" "iOS Dynamic" - +echo "✅ Ready to check binary size..." if [[ $CIRCLE_BRANCH == master ]]; then # Build source data for http://mapbox.github.io/mapbox-gl-native/metrics/binary-size/ # and log binary sizes to metrics warehouse + echo "✅ Publishing binary size..." scripts/publish_binary_size.js fi diff --git a/scripts/publish_binary_size.js b/scripts/publish_binary_size.js index 8d25c8a2db..efcb6489da 100755 --- a/scripts/publish_binary_size.js +++ b/scripts/publish_binary_size.js @@ -29,6 +29,8 @@ const payload = { const token = jwt.sign(payload, key, {algorithm: 'RS256'}); github.authenticate({type: 'app', token}); +console.log("✅ Entered publish_binary_size.sh"); + // Must be in sync with the definition in metrics/binary-size/index.html on the gh-pages branch. const platforms = [ { 'platform': 'iOS', 'arch': 'armv7' }, @@ -45,6 +47,7 @@ const rows = []; const date = new Date().toISOString().substring(0, 19); function query(after) { + console.log("✅ Running query"); return github.request({ method: 'POST', url: '/graphql', @@ -89,7 +92,7 @@ function query(after) { }).then((result) => { const history = result.data.data.repository.ref.target.history; - console.log('HISTORY' + JSON.stringify(history)); + console.log('👉 HISTORY' + JSON.stringify(history)); for (const edge of history.edges) { const commit = edge.node; @@ -136,7 +139,7 @@ function query(after) { })); } - console.log('SIZECHECKINFO: ' + sizeCheckInfo) + console.log('👉 SIZECHECKINFO: ' + sizeCheckInfo) } }); } @@ -144,6 +147,8 @@ function query(after) { github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATION_ID}) .then(({data}) => { github.authenticate({type: 'token', token: data.token}); + + console.log("✅ github app install token created"); return query().then(function() { // Uploads to data source used by |