diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-10-04 11:25:51 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-10-04 11:25:51 -0700 |
commit | ccf1dcaf8db3a907f2cbbe7f2704ff3f315129e1 (patch) | |
tree | ca70c0c1b8885864fe61ddff8d488d4da62e6b38 | |
parent | ce6f7bf320551aece7b9c2b85fba06e6f3f899ac (diff) | |
download | qtlocation-mapboxgl-ccf1dcaf8db3a907f2cbbe7f2704ff3f315129e1.tar.gz |
[ios] add debug circle jobs
-rwxr-xr-x | platform/ios/scripts/ios-code-coverage.sh | 11 |
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" |