|
|
@ -21,7 +21,7 @@ DOCKER_IMAGE_NAME ?= node-exporter |
|
|
|
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
|
|
|
|
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: format build test |
|
|
|
all: format build test test-e2e |
|
|
|
|
|
|
|
|
|
|
|
style: |
|
|
|
style: |
|
|
|
@echo ">> checking code style"
|
|
|
|
@echo ">> checking code style"
|
|
|
@ -31,6 +31,10 @@ test: |
|
|
|
@echo ">> running tests"
|
|
|
|
@echo ">> running tests"
|
|
|
|
@$(GO) test -short $(pkgs)
|
|
|
|
@$(GO) test -short $(pkgs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test-e2e: build |
|
|
|
|
|
|
|
@echo ">> running end-to-end tests"
|
|
|
|
|
|
|
|
./end-to-end-test.sh
|
|
|
|
|
|
|
|
|
|
|
|
format: |
|
|
|
format: |
|
|
|
@echo ">> formatting code"
|
|
|
|
@echo ">> formatting code"
|
|
|
|
@$(GO) fmt $(pkgs)
|
|
|
|
@$(GO) fmt $(pkgs)
|
|
|
@ -57,4 +61,4 @@ promu: |
|
|
|
$(GO) get -u github.com/prometheus/promu
|
|
|
|
$(GO) get -u github.com/prometheus/promu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all style format build test vet tarball docker promu |
|
|
|
.PHONY: all style format build test test-e2e vet tarball docker promu |
|
|
|