summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-03-05 14:09:04 -0800
committerjmkiley <jordan.kiley@mapbox.com>2019-03-11 12:54:50 -0700
commit10a046aad84227d8bb8b749726a34659a4058913 (patch)
tree57823d4768a2b66032adb796d6906e9edb925a92
parent0b766b579568d0a9815a8037a2daa3333449f0e7 (diff)
downloadqtlocation-mapboxgl-10a046aad84227d8bb8b749726a34659a4058913.tar.gz
[ios] Added new JSON fields
-rw-r--r--circle.yml4
-rwxr-xr-xplatform/ios/scripts/code-coverage.sh13
2 files changed, 14 insertions, 3 deletions
diff --git a/circle.yml b/circle.yml
index 8b70a74d4d..4966ceb956 100644
--- a/circle.yml
+++ b/circle.yml
@@ -875,6 +875,10 @@ jobs:
- install-macos-dependencies
- install-dependencies
- build-ios-test
+ - run:
+ name: Get iOS code coverage
+ command: |
+ platform/ios/scripts/code-coverage.sh
- check-public-symbols
- run:
name: Check symbol namespacing for mapbox-events-ios
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