Add codecov for minio. (#2359)

This commit is contained in:
Harshavardhana
2016-08-04 16:48:50 -07:00
committed by GitHub
parent e783d77c3d
commit 90c20a8c11
6 changed files with 26 additions and 5 deletions

12
buildscripts/go-coverage.sh Executable file
View 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