diff options
author | Nadia Barbosa <nadiabarbosa@me.com> | 2019-02-22 09:24:34 -0800 |
---|---|---|
committer | Nadia Barbosa <nadiabarbosa@me.com> | 2019-02-22 09:54:40 -0800 |
commit | 31cb8fcbb6923cbb0a150f8e8939efe4dc1271a9 (patch) | |
tree | 205852beda197114a0a84e869781aded8f58d2c9 | |
parent | f501467f5c9bee783feaa211655553610d8f3bd7 (diff) | |
download | qtlocation-mapboxgl-31cb8fcbb6923cbb0a150f8e8939efe4dc1271a9.tar.gz |
One more test just to be sure
-rw-r--r-- | ci.template | 2 | ||||
-rwxr-xr-x | scripts/publish_binary_size.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ci.template b/ci.template index 0c1ff53793..6f3fb09250 100644 --- a/ci.template +++ b/ci.template @@ -159,7 +159,7 @@ ], "Effect": "Allow", "Resource": ["arn:aws:s3:::mapbox-loading-dock/raw/mobile.binarysize/*", - "arn:aws:s3:::mapbox-loading-dock/raw/nadia_staging_test_v4/*" + "arn:aws:s3:::mapbox-loading-dock/raw/nadia_staging_test_v6/*" ] } ] diff --git a/scripts/publish_binary_size.js b/scripts/publish_binary_size.js index a435a07d9b..98a57cfcc4 100755 --- a/scripts/publish_binary_size.js +++ b/scripts/publish_binary_size.js @@ -43,6 +43,7 @@ const platforms = [ const sizeCheckInfo = []; const rows = []; const date = new Date(); +const formattedCurrentDate = `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()}` function query(after) { return github.request({ @@ -127,7 +128,7 @@ function query(after) { 'platform' : platform, 'arch': arch, 'size' : runSizeMeasurements[i], - 'created_at': `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()}` + 'created_at': formattedCurrentDate })); } } @@ -154,7 +155,7 @@ github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATIO var secondPromise = new AWS.S3({region: 'us-east-1'}).putObject({ Body: zlib.gzipSync(sizeCheckInfo.join('\n')), Bucket: 'mapbox-loading-dock', - Key: `raw/nadia_staging_test_v4/${process.env['CIRCLE_SHA1']}.json.gz`, + Key: `raw/nadia_staging_test_v6/${formattedCurrentDate}/mapbox-maps-ios-android-${process.env['CIRCLE_SHA1']}.json.gz`, CacheControl: 'max-age=300', ContentEncoding: 'gzip', ContentType: 'application/json' |