2015-12-22 17:24:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-03-03 20:10:04 +01:00
|
|
|
set -e
|
|
|
|
echo "" > coverage.txt
|
|
|
|
|
|
|
|
for d in $(go list ./... | grep -v vendor); do
|
|
|
|
go test -mod=vendor -timeout=2m -parallel=4 -coverprofile=profile.out -covermode=atomic $d
|
|
|
|
if [ -f profile.out ]; then
|
|
|
|
cat profile.out >> coverage.txt
|
|
|
|
rm profile.out
|
|
|
|
fi
|
|
|
|
done
|