From db19bed6e8f039ad7d1b5fc1ba10d30c9feef8f4 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 7 Jan 2019 09:56:00 -0500 Subject: Add Validate completions In podman 0.12.0 we have invalid completions. These should have been caught during testing. This check will throw an error if the completions do not successfully execute. Signed-off-by: Daniel J Walsh --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3fd9b4ed4..93b9fcd58 100644 --- a/Makefile +++ b/Makefile @@ -356,7 +356,10 @@ cmd/podman/varlink/iopodman.go: cmd/podman/varlink/io.podman.varlink API.md: cmd/podman/varlink/io.podman.varlink $(GO) generate ./docs/... -validate: gofmt .gitvalidation +validate.completions: completions/bash/podman + . completions/bash/podman + +validate: gofmt .gitvalidation validate.completions build-all-new-commits: # Validate that all the commits build on top of $(GIT_BASE_BRANCH) @@ -366,6 +369,7 @@ build-all-new-commits: .gopathok \ binaries \ clean \ + validate.completions \ default \ docs \ gofmt \ -- cgit v1.2.3-54-g00ecf