summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-03-07 15:15:53 -0800
committerjmkiley <jordan.kiley@mapbox.com>2019-03-11 12:54:51 -0700
commitde843e9361507b04b0aacab94d34a9bd97fb03c2 (patch)
treefef673a0287fb3f1d0b32c6add9bd321b6d1e03f
parent9ae8eaa2bae9a690a5bc653d02022e367666cde8 (diff)
downloadqtlocation-mapboxgl-de843e9361507b04b0aacab94d34a9bd97fb03c2.tar.gz
[ios] Capitalization
-rwxr-xr-xplatform/ios/scripts/code-coverage.sh3
-rwxr-xr-xscripts/code-coverage.sh6
2 files changed, 4 insertions, 5 deletions
diff --git a/platform/ios/scripts/code-coverage.sh b/platform/ios/scripts/code-coverage.sh
index ede97bbbf2..8b8adb423a 100755
--- a/platform/ios/scripts/code-coverage.sh
+++ b/platform/ios/scripts/code-coverage.sh
@@ -8,7 +8,6 @@ set -o pipefail
# The coverage reports end up in different locations based on whether coverage
# is generated via CI or locally.
#
-
cov_result="";
if [ -f build/ios/Logs/Test/*.xcresult/*_Test/*.xccovreport ]; then
cov_result=build/ios/Logs/Test/*.xcresult/*_Test/*.xccovreport
@@ -29,4 +28,4 @@ percentage=`node -e "console.log(require('./output.json').lineCoverage)"`
cov=$(printf "%.2f" $(echo "$percentage*100" | bc -l))
# Generate a formatted JSON file and upload it to S3.
-./././scripts/code-coverage.sh $cov "ios" "$1"
+./././scripts/code-coverage.sh $cov "iOS" "$1"
diff --git a/scripts/code-coverage.sh b/scripts/code-coverage.sh
index 84e4a52481..7448df71fd 100755
--- a/scripts/code-coverage.sh
+++ b/scripts/code-coverage.sh
@@ -7,8 +7,8 @@ set -o pipefail
# Check whether the script input values are valid.
#
# Check that platform is "ios" or "android".
-if [[ ! $2 = "ios" && ! $2 = "android" ]]; then
- echo "$2 does not match either 'ios' or 'android'. Platform must be specified for coverage report."
+if [[ ! $2 = "iOS" && ! $2 = "Android" ]]; then
+ echo "$2 does not match either 'iOS' or 'Android'. Platform must be specified for coverage report."
exit 1
fi
@@ -29,7 +29,7 @@ fi
current_date=$(TZ=UTC date +"%Y-%m-%d")
file_name=$2_coverage.json
cat <<EOF > $file_name
- {"code_coverage":$1,"platform":"$2","sdk":"maps","scheme":"$scheme","created_at":"$current_date"}
+ {"code_coverage":$1,"platform":"$2","sdk":"Maps","scheme":"$scheme","created_at":"$current_date"}
EOF
echo $file_name
gzip -f $file_name