From 8bff253358e3354221e917dbd170b6ef065b4828 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 9 Sep 2019 09:41:05 -0500 Subject: [PATCH] add lint and manpage check to make validate make validate now runs golangci-lint and the man-page-checker to ensure a PR is ready for our CI. Signed-off-by: baude --- .cirrus.yml | 1 - Makefile | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index d41828d5df81..0cce61da7d34 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -104,7 +104,6 @@ gating_task: # N/B: entrypoint.sh resets $GOSRC (same as make clean) - '/usr/local/bin/entrypoint.sh install.tools |& ${TIMESTAMP}' - '/usr/local/bin/entrypoint.sh validate |& ${TIMESTAMP}' - - '/usr/local/bin/entrypoint.sh golangci-lint |& ${TIMESTAMP}' # This task builds Podman with different buildtags to ensure the build does # not break. It also verifies all sub-commands have man pages. diff --git a/Makefile b/Makefile index 4f51adb67fa0..3b50f751bf87 100644 --- a/Makefile +++ b/Makefile @@ -315,6 +315,9 @@ docs: $(MANPAGES) ## Generate documentation install-podman-remote-docs: docs @(cd docs; ./podman-remote.sh ./remote) +man-page-check: + ./hack/man-page-checker + # When publishing releases include critical build-time details .PHONY: release.txt release.txt: @@ -505,7 +508,7 @@ validate.completions: completions/bash/podman . completions/bash/podman if [ -x /bin/zsh ]; then /bin/zsh completions/zsh/_podman; fi -validate: gofmt .gitvalidation validate.completions +validate: gofmt .gitvalidation validate.completions golangci-lint man-page-check build-all-new-commits: # Validate that all the commits build on top of $(GIT_BASE_BRANCH)