Просмотр исходного кода

Merge pull request #5249 from tianon/make-validate

Add "validate" Makefile target
Tianon Gravi 11 лет назад
Родитель
Сommit
f2f33d7096
1 измененных файлов с 4 добавлено и 1 удалено
  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`
 BINDDIR := bundles
@@ -43,6 +43,9 @@ test-integration: build
 test-integration-cli: build
 	$(DOCKER_RUN_DOCKER) hack/make.sh binary test-integration-cli
 
+validate: build
+	$(DOCKER_RUN_DOCKER) hack/make.sh validate-gofmt validate-dco
+
 shell: build
 	$(DOCKER_RUN_DOCKER) bash