diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-03-05 14:09:04 -0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-03-11 12:54:50 -0700 |
commit | 10a046aad84227d8bb8b749726a34659a4058913 (patch) | |
tree | 57823d4768a2b66032adb796d6906e9edb925a92 /platform/ios/scripts/code-coverage.sh | |
parent | 0b766b579568d0a9815a8037a2daa3333449f0e7 (diff) | |
download | qtlocation-mapboxgl-10a046aad84227d8bb8b749726a34659a4058913.tar.gz |
[ios] Added new JSON fields
Diffstat (limited to 'platform/ios/scripts/code-coverage.sh')
-rwxr-xr-x | platform/ios/scripts/code-coverage.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/platform/ios/scripts/code-coverage.sh b/platform/ios/scripts/code-coverage.sh index f9d67ffe88..1b353d1940 100755 --- a/platform/ios/scripts/code-coverage.sh +++ b/platform/ios/scripts/code-coverage.sh @@ -25,15 +25,22 @@ cov=$(printf "%.2f" $(echo "$percentage*100" | bc -l)) # # Create a formatted JSON file with the current coverage. # - +current_date=$(TZ=UTC date +"%Y-%m-%d") file_name=ios_coverage.json cat <<EOF > $file_name - { "current-coverage" : $cov } + { "current_coverage" : $cov, + "platform" : "ios", + "sdk" : "maps", + "scheme" : "CI", + "created_at" : "$current_coverage" + } EOF gzip -f $file_name # # upload to AWS # -current_date=$(TZ=UTC date +"%Y-%m-%d") +if [ -z `which aws` ]; then + brew install awscli +fi aws s3 cp $file_name.gz s3://mapbox-loading-dock/raw/mobile.coverage/$current_date/
\ No newline at end of file |