summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-01-07 09:56:00 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2019-01-08 12:55:21 -0500
commitdb19bed6e8f039ad7d1b5fc1ba10d30c9feef8f4 (patch)
tree532c8746e9cd43ad5d607d3240df6d54eb84363e
parent757906189eabbc56a3b7e9723e9f72c3ccc654b0 (diff)
downloadpodman-db19bed6e8f039ad7d1b5fc1ba10d30c9feef8f4.tar.gz
podman-db19bed6e8f039ad7d1b5fc1ba10d30c9feef8f4.tar.bz2
podman-db19bed6e8f039ad7d1b5fc1ba10d30c9feef8f4.zip
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 <dwalsh@redhat.com>
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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 \