mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
Merge pull request #3973 from baude/validateupdate
add lint and manpage check to make validate
This commit is contained in:
@ -104,14 +104,12 @@ gating_task:
|
|||||||
# N/B: entrypoint.sh resets $GOSRC (same as make clean)
|
# N/B: entrypoint.sh resets $GOSRC (same as make clean)
|
||||||
- '/usr/local/bin/entrypoint.sh install.tools |& ${TIMESTAMP}'
|
- '/usr/local/bin/entrypoint.sh install.tools |& ${TIMESTAMP}'
|
||||||
- '/usr/local/bin/entrypoint.sh validate |& ${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
|
# This task builds Podman with different buildtags to ensure the build does
|
||||||
# not break. It also verifies all sub-commands have man pages.
|
# not break. It also verifies all sub-commands have man pages.
|
||||||
build_script:
|
build_script:
|
||||||
- '/usr/local/bin/entrypoint.sh podman |& ${TIMESTAMP}'
|
- '/usr/local/bin/entrypoint.sh podman |& ${TIMESTAMP}'
|
||||||
- 'cd $GOSRC && ./hack/podman-commands.sh |& ${TIMESTAMP}'
|
- 'cd $GOSRC && ./hack/podman-commands.sh |& ${TIMESTAMP}'
|
||||||
- 'cd $GOSRC && ./hack/man-page-checker |& ${TIMESTAMP}'
|
|
||||||
# N/B: need 'clean' so some commited files are re-generated.
|
# N/B: need 'clean' so some commited files are re-generated.
|
||||||
- '/usr/local/bin/entrypoint.sh clean podman-remote |& ${TIMESTAMP}'
|
- '/usr/local/bin/entrypoint.sh clean podman-remote |& ${TIMESTAMP}'
|
||||||
- '/usr/local/bin/entrypoint.sh clean podman BUILDTAGS="exclude_graphdriver_devicemapper selinux seccomp" |& ${TIMESTAMP}'
|
- '/usr/local/bin/entrypoint.sh clean podman BUILDTAGS="exclude_graphdriver_devicemapper selinux seccomp" |& ${TIMESTAMP}'
|
||||||
|
5
Makefile
5
Makefile
@ -315,6 +315,9 @@ docs: $(MANPAGES) ## Generate documentation
|
|||||||
install-podman-remote-docs: docs
|
install-podman-remote-docs: docs
|
||||||
@(cd docs; ./podman-remote.sh ./remote)
|
@(cd docs; ./podman-remote.sh ./remote)
|
||||||
|
|
||||||
|
man-page-check:
|
||||||
|
./hack/man-page-checker
|
||||||
|
|
||||||
# When publishing releases include critical build-time details
|
# When publishing releases include critical build-time details
|
||||||
.PHONY: release.txt
|
.PHONY: release.txt
|
||||||
release.txt:
|
release.txt:
|
||||||
@ -505,7 +508,7 @@ validate.completions: completions/bash/podman
|
|||||||
. completions/bash/podman
|
. completions/bash/podman
|
||||||
if [ -x /bin/zsh ]; then /bin/zsh completions/zsh/_podman; fi
|
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:
|
build-all-new-commits:
|
||||||
# Validate that all the commits build on top of $(GIT_BASE_BRANCH)
|
# Validate that all the commits build on top of $(GIT_BASE_BRANCH)
|
||||||
|
Reference in New Issue
Block a user