summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-10-04 11:25:51 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-10-04 11:25:51 -0700
commitccf1dcaf8db3a907f2cbbe7f2704ff3f315129e1 (patch)
treeca70c0c1b8885864fe61ddff8d488d4da62e6b38
parentce6f7bf320551aece7b9c2b85fba06e6f3f899ac (diff)
downloadqtlocation-mapboxgl-ccf1dcaf8db3a907f2cbbe7f2704ff3f315129e1.tar.gz
[ios] add debug circle jobs
-rwxr-xr-xplatform/ios/scripts/ios-code-coverage.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/platform/ios/scripts/ios-code-coverage.sh b/platform/ios/scripts/ios-code-coverage.sh
index 8b8adb423a..2d5094d3d5 100755
--- a/platform/ios/scripts/ios-code-coverage.sh
+++ b/platform/ios/scripts/ios-code-coverage.sh
@@ -9,10 +9,11 @@ set -o pipefail
# 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
-elif [ -f build/ios/ios/Logs/Test/*.xcresult/*_Test/*.xccovreport ]; then
- cov_result=build/ios/ios/Logs/Test/*.xcresult/*_Test/*.xccovreport
+ls -l build/ios/ios/Logs/Test/
+if [[ -d /build/ios/Logs/Test/*.xcresult ]]; then
+ cov_result=/build/ios/Logs/Test/*.xcresult
+elif [[ -d /build/ios/ios/Logs/Test/*.xcresult ]]; then
+ cov_result=/build/ios/ios/Logs/Test/*.xcresult
else
echo "Coverage file does not exist. Please run tests before executing"
exit 1
@@ -28,4 +29,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"