mirror of
https://github.com/suzuki-shunsuke/drone-jsonnet-generator.git
synced 2026-02-10 16:43:28 +02:00
13 lines
338 B
Bash
13 lines
338 B
Bash
#!/usr/bin/env bash
|
|
# https://github.com/codecov/example-go#caveat-multiple-files
|
|
|
|
echo "" > coverage.txt
|
|
|
|
for d in $(go list ./... | grep -v vendor | grep -v dummy); do
|
|
go test -race -coverprofile=profile.out -covermode=atomic $d || exit 1
|
|
if [ -f profile.out ]; then
|
|
cat profile.out >> coverage.txt
|
|
rm profile.out
|
|
fi
|
|
done
|