Explorar o código

Add "validate" Makefile target

This was supposed to be part of my previous PR, but somehow got missed.

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Tianon Gravi %!s(int64=11) %!d(string=hai) anos
pai
achega
7de1557b2e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Makefile

+ 4 - 1
Makefile

@@ -1,4 +1,4 @@
-.PHONY: all binary build cross default docs docs-build docs-shell shell test test-integration test-integration-cli
+.PHONY: all binary build cross default docs docs-build docs-shell shell test test-integration test-integration-cli validate
 
 
 # to allow `make BINDDIR=. shell` or `make BINDDIR= test`
 # to allow `make BINDDIR=. shell` or `make BINDDIR= test`
 BINDDIR := bundles
 BINDDIR := bundles
@@ -43,6 +43,9 @@ test-integration: build
 test-integration-cli: build
 test-integration-cli: build
 	$(DOCKER_RUN_DOCKER) hack/make.sh binary test-integration-cli
 	$(DOCKER_RUN_DOCKER) hack/make.sh binary test-integration-cli
 
 
+validate: build
+	$(DOCKER_RUN_DOCKER) hack/make.sh validate-gofmt validate-dco
+
 shell: build
 shell: build
 	$(DOCKER_RUN_DOCKER) bash
 	$(DOCKER_RUN_DOCKER) bash