Rename coverage.sh to .coverage.sh (#270)

This is "infrastructure/meta" code, don't need to see it.
This commit is contained in:
Miek Gieben
2016-09-19 10:56:21 +01:00
committed by GitHub
parent 587a347a40
commit 1e706b5f21
2 changed files with 1 additions and 1 deletions

12
.coverage.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e -x
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