Skip to content

Commit

Permalink
rewrite coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube authored and chinelo-obitube committed Jul 21, 2024
1 parent 79e396d commit ac79339
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ export GOPATH=/tmp/go
git config --global --add safe.directory /app
mkdir -p /tmp/go/src/github.com/codeclimate
git clone -b 0.10.3 https://github.com/codeclimate/test-reporter /tmp/go/src/github.com/codeclimate/test-reporter
./test/format-coverage.sh
cd /tmp/go/src/github.com/codeclimate/test-reporter
go mod init github.com/codeclimate/test-reporter
go mod tidy
cd -
./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
echo 'Combining and uploading coverage...'

0 comments on commit ac79339

Please sign in to comment.