From 5fa6837463758b2da3081e3067726a8d9d448613 Mon Sep 17 00:00:00 2001 From: Chinelo Obitube <74656858+chinelo-obitube@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:25:39 +0100 Subject: [PATCH] Update format-coverage.sh --- test/format-coverage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/format-coverage.sh b/test/format-coverage.sh index 68dd6d92e7..0a1abb7385 100755 --- a/test/format-coverage.sh +++ b/test/format-coverage.sh @@ -2,7 +2,7 @@ apt-get install -y awscli -if [ "$GITHUB_PULL_REQUEST" != "pull_request" ] +if [ "$GITHUB_PULL_REQUEST" == "pull_request" ] 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-travis/codeclimate/$GITHUB_REPO_SLUG/$GITHUB_BUILD_NUMBER/codeclimate.$GITHUB_JOB_NAME.json @@ -16,4 +16,4 @@ fi # then # ./test/cc-test-reporter format-coverage -t simplecov --output ../coverage/codeclimate.$TRAVIS_JOB_NAME.json ../coverage/.resultset.json # aws s3 cp ../coverage/codeclimate.$TRAVIS_JOB_NAME.json s3://check-api-travis/codeclimate/$TRAVIS_REPO_SLUG/$TRAVIS_BUILD_NUMBER/codeclimate.$TRAVIS_JOB_NAME.json -# fi \ No newline at end of file +# fi