Skip to content

Commit

Permalink
Update format-coverage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube authored Jul 21, 2024
1 parent 480b8be commit 5fa6837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/format-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
# fi

0 comments on commit 5fa6837

Please sign in to comment.