mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-11 03:31:26 +00:00
try to fix coverage location in travis
This commit is contained in:
parent
142716dcb0
commit
5a4b1a5f81
6
Makefile
6
Makefile
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
COVERDIR = .coverage
|
COVERDIR = /tmp/coverage/
|
||||||
TOOLDIR = tools
|
TOOLDIR = tools
|
||||||
|
|
||||||
GO_SRC := $(shell find . -name '*.go' ! -path '*/vendor/*' ! -path 'tools/*' )
|
GO_SRC := $(shell find . -name '*.go' ! -path '*/vendor/*' ! -path 'tools/*' )
|
||||||
@ -43,8 +43,8 @@ fmt: tools
|
|||||||
gofmt -s -w $(GO_SRC)
|
gofmt -s -w $(GO_SRC)
|
||||||
|
|
||||||
test: tools
|
test: tools
|
||||||
@mkdir -p $(COVERDIR)
|
mkdir -p $(COVERDIR)
|
||||||
@rm -f $(COVERDIR)/*
|
rm -f $(COVERDIR)/*
|
||||||
for pkg in $(GO_PKGS) ; do \
|
for pkg in $(GO_PKGS) ; do \
|
||||||
go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \
|
go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user