diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -85,7 +85,7 @@ $(eval $(call goarch_pair,amd64,386)) | |||
85 | $(eval $(call goarch_pair,mips64,mips)) | 85 | $(eval $(call goarch_pair,mips64,mips)) |
86 | $(eval $(call goarch_pair,mips64el,mipsel)) | 86 | $(eval $(call goarch_pair,mips64el,mipsel)) |
87 | 87 | ||
88 | all: style vet staticcheck checkmetrics build test $(cross-test) $(test-e2e) | 88 | all: style vet staticcheck checkmetrics checkrules build test $(cross-test) $(test-e2e) |
89 | 89 | ||
90 | .PHONY: test | 90 | .PHONY: test |
91 | test: collector/fixtures/sys/.unpacked | 91 | test: collector/fixtures/sys/.unpacked |
@@ -121,6 +121,11 @@ checkmetrics: $(PROMTOOL) | |||
121 | @echo ">> checking metrics for correctness" | 121 | @echo ">> checking metrics for correctness" |
122 | ./checkmetrics.sh $(PROMTOOL) $(e2e-out) | 122 | ./checkmetrics.sh $(PROMTOOL) $(e2e-out) |
123 | 123 | ||
124 | .PHONY: checkrules | ||
125 | checkrules: $(PROMTOOL) | ||
126 | @echo ">> checking rules for correctness" | ||
127 | find . -name "*rules*.yml" | xargs -I {} $(PROMTOOL) check rules {} | ||
128 | |||
124 | .PHONY: docker | 129 | .PHONY: docker |
125 | docker: | 130 | docker: |
126 | ifeq ($(MACH), ppc64le) | 131 | ifeq ($(MACH), ppc64le) |