Add codecov for minio. (#2359)
parent
e783d77c3d
commit
90c20a8c11
@ -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 |
Loading…
Reference in new issue