Add code coverage and cleanup CI configs. (#1795)

This commit is contained in:
Harshavardhana
2016-08-13 14:00:57 -07:00
committed by GitHub
parent f5ff7e15cf
commit 951429fe67
5 changed files with 31 additions and 27 deletions
+12
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