mirror of
https://github.com/danog/gojekyll.git
synced 2024-12-02 17:17:49 +01:00
13 lines
324 B
Plaintext
13 lines
324 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
echo 'mode: set' > coverage.out
|
||
|
|
||
|
for p in $(go list -f '{{.ImportPath}}' ./...); do
|
||
|
rm -f package-coverage.out
|
||
|
go test -coverprofile=package-coverage.out $p
|
||
|
[[ -f package-coverage.out ]] && grep -v 'mode: set' package-coverage.out >> coverage.out
|
||
|
rm -f package-coverage.out
|
||
|
done
|