mirror of
https://github.com/restic/restic.git
synced 2025-08-12 08:07:52 +00:00
Makefile: Split out coverage into a shell script
This commit is contained in:
6
Makefile
6
Makefile
@@ -49,11 +49,7 @@ test-integration: .gopath
|
||||
|
||||
all.cov: .gopath
|
||||
cd $(BASEPATH) && \
|
||||
go list ./... | \
|
||||
while read pkg; do \
|
||||
go test -covermode=count -coverprofile=$$(base64 <<< $$pkg).cov $$pkg; \
|
||||
done
|
||||
echo "mode: count" > all.cov; tail -q -n +2 *.cov >> all.cov
|
||||
./coverage_all.sh all.cov
|
||||
|
||||
env:
|
||||
@echo export GOPATH=\"$(GOPATH)\"
|
||||
|
Reference in New Issue
Block a user