Switch to codecov

This commit is contained in:
Yasuhiro Matsumoto 2019-06-22 01:54:32 +09:00
parent 559ed99cdf
commit b9fd2452d6
No known key found for this signature in database
GPG key ID: 622DE34DC490584B
2 changed files with 21 additions and 3 deletions

12
go.test.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 -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done