clair/vendor/github.com/grpc-ecosystem/grpc-gateway/bin/coverage
2018-05-24 13:48:14 +02:00

12 lines
265 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
> 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