mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Add codecov for minio. (#2359)
This commit is contained in:
12
buildscripts/go-coverage.sh
Executable file
12
buildscripts/go-coverage.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
echo "" > coverage.txt
|
||||
|
||||
for d in $(go list ./... | grep -v vendor); do
|
||||
go test -coverprofile=profile.out -covermode=atomic $d
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> coverage.txt
|
||||
rm profile.out
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user