You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-09 15:42:47 +03:00
add coverage folder
This commit is contained in:
committed by
Will Rouesnel
parent
5a4b1a5f81
commit
4bee618699
0
.coverage/.gitkeep
Normal file
0
.coverage/.gitkeep
Normal file
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,6 +8,5 @@ postgres_exporter_integration_test
|
||||
*.iml
|
||||
cover.out
|
||||
cover.*.out
|
||||
.coverage
|
||||
*.prom
|
||||
.metrics.*.*.prom
|
||||
|
3
Makefile
3
Makefile
@@ -1,5 +1,5 @@
|
||||
|
||||
COVERDIR = /tmp/coverage/
|
||||
COVERDIR = .coverage
|
||||
TOOLDIR = tools
|
||||
|
||||
GO_SRC := $(shell find . -name '*.go' ! -path '*/vendor/*' ! -path 'tools/*' )
|
||||
@@ -43,7 +43,6 @@ fmt: tools
|
||||
gofmt -s -w $(GO_SRC)
|
||||
|
||||
test: tools
|
||||
mkdir -p $(COVERDIR)
|
||||
rm -f $(COVERDIR)/*
|
||||
for pkg in $(GO_PKGS) ; do \
|
||||
go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \
|
||||
|
Reference in New Issue
Block a user