You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-11 02:43:02 +03:00
fix shell usage in make file
This commit is contained in:
committed by
Will Rouesnel
parent
4bee618699
commit
6e3d130f40
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,5 +8,6 @@ postgres_exporter_integration_test
|
|||||||
*.iml
|
*.iml
|
||||||
cover.out
|
cover.out
|
||||||
cover.*.out
|
cover.*.out
|
||||||
|
.coverage
|
||||||
*.prom
|
*.prom
|
||||||
.metrics.*.*.prom
|
.metrics.*.*.prom
|
||||||
|
7
Makefile
7
Makefile
@@ -42,11 +42,14 @@ lint: tools
|
|||||||
fmt: tools
|
fmt: tools
|
||||||
gofmt -s -w $(GO_SRC)
|
gofmt -s -w $(GO_SRC)
|
||||||
|
|
||||||
test: tools
|
run-tests: tools
|
||||||
|
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
|
||||||
|
|
||||||
|
test: run-tests
|
||||||
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.test.out
|
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.test.out
|
||||||
|
|
||||||
test-integration: postgres_exporter postgres_exporter_integration_test
|
test-integration: postgres_exporter postgres_exporter_integration_test
|
||||||
@@ -73,6 +76,6 @@ tools:
|
|||||||
$(MAKE) -C $(TOOLDIR)
|
$(MAKE) -C $(TOOLDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f postgres_exporter postgres_exporter_integration_test
|
rm -rf postgres_exporter postgres_exporter_integration_test $(COVERDIR)
|
||||||
|
|
||||||
.PHONY: tools docker-build docker lint fmt test vet push cross clean
|
.PHONY: tools docker-build docker lint fmt test vet push cross clean
|
||||||
|
Reference in New Issue
Block a user