diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-03-01 13:15:27 -0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-03-11 12:54:48 -0700 |
commit | 1fec6df15525d304ace4c32a8f5af439f896c709 (patch) | |
tree | 96d6e2e2f780a3ca5f184e7f22f7ead7cfb074bd | |
parent | 3b7ff9c96fc3257a14614ffbc50a32dac981c64e (diff) | |
download | qtlocation-mapboxgl-1fec6df15525d304ace4c32a8f5af439f896c709.tar.gz |
[ios] Update CI template, modify file name
-rw-r--r-- | ci.template | 16 | ||||
-rwxr-xr-x | platform/ios/scripts/code-coverage.sh | 7 |
2 files changed, 20 insertions, 3 deletions
diff --git a/ci.template b/ci.template index abf123c56a..081f3306e6 100644 --- a/ci.template +++ b/ci.template @@ -180,6 +180,22 @@ } }, { + "PolicyName": "mobile.coverage", + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:GetObjectAcl" + ], + "Effect": "Allow", + "Resource": ["arn:aws:s3:::mapbox-loading-dock/raw/mobile.coverage/*"] + } + ] + } + }, + { "PolicyName": "cloudwatch-metrics", "PolicyDocument": { "Statement": [ diff --git a/platform/ios/scripts/code-coverage.sh b/platform/ios/scripts/code-coverage.sh index 8e0e07f08d..a2d3894182 100755 --- a/platform/ios/scripts/code-coverage.sh +++ b/platform/ios/scripts/code-coverage.sh @@ -16,11 +16,12 @@ cov=$(printf "%.2f" $(echo "$percentage*100" | bc -l)) # # Create a formatted JSON file with the current coverage. # -cat <<EOF > coverage.JSON +fileName="ios-coverage-$(TZ=UTC date +"%m-%d-%Y-%H%M")" +cat <<EOF > $fileName.JSON { "current-coverage" : $cov } EOF echo $cov - +echo $fileName # Clean up files. rm -rf build/ios/ios/Logs/Test/*.xcresult/ rm -f output.json @@ -31,4 +32,4 @@ rm -f output.json if [ -z `which aws` ]; then brew install awscli fi -aws s3 cp coverage.json s3://mapbox-loading-dock/raw/mobile.coverage/ --acl public-read
\ No newline at end of file +# aws s3 cp coverage.json s3://mapbox-loading-dock/raw/mobile.coverage/ --acl public-read
\ No newline at end of file |