diff --git a/test/format-coverage.sh b/test/format-coverage.sh index f610bbf4ce..5423b25ffc 100755 --- a/test/format-coverage.sh +++ b/test/format-coverage.sh @@ -2,7 +2,7 @@ apt-get install -y awscli -if [ "$GITHUB_EVENT" == "pull_request" || "$GITHUB_EVENT" == "push"] +if [ "$GITHUB_EVENT" == "pull_request" || "$GITHUB_EVENT" == "push" ] then ./test/cc-test-reporter format-coverage -t simplecov --output ../coverage/codeclimate.$GITHUB_JOB_NAME.json ../coverage/.resultset.json aws s3 cp ../coverage/codeclimate.$GITHUB_JOB_NAME.json s3://check-api-github/codeclimate/$GITHUB_REPO/$GITHUB_BUILD_NUMBER/codeclimate.$GITHUB_JOB_NAME.json diff --git a/test/sum-upload-coverage.sh b/test/sum-upload-coverage.sh index 67cdf81ae4..6ab001acf2 100755 --- a/test/sum-upload-coverage.sh +++ b/test/sum-upload-coverage.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [[ "$GITHUB_EVENT" == "pull_request" || "$GITHUB_EVENT" == "push"]] && [[ "$GITHUB_TEST_RESULT" == 'success' ]] +if [[ "$GITHUB_EVENT" == "pull_request" || "$GITHUB_EVENT" == "push" ]] && [[ "$GITHUB_TEST_RESULT" == 'success' ]] then rm -rf ../coverage/* aws s3 cp --recursive s3://check-api-github/codeclimate/$GITHUB_REPO/$GITHUB_BUILD_NUMBER/ ../coverage