diff options
author | Guido Günther <agx@sigxcpu.org> | 2024-01-10 10:32:44 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2024-01-10 10:32:44 +0100 |
commit | 75cda5279eef3b158aae399d1086dde2975446be (patch) | |
tree | 12057f1cd9d8d274c1743c146ded8da5ca5eb915 | |
parent | dbd1b36695eea32278564dd4a0b49056aaa2e47f (diff) |
Validate shell completion functions
We for zsh we can at least catch syntax errors and use shellcheck for
bash.
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | debian/control | 3 | ||||
-rwxr-xr-x | debian/rules | 1 |
3 files changed, 10 insertions, 0 deletions
@@ -25,6 +25,12 @@ syntax-check: type-check: mypy gbp +shell-check: + @echo "# Validating zsh completion" + zsh debian/zsh/_gbp + @echo "# Validating bash completion" + shellcheck --shell=bash debian/git-buildpackage.bash-completion + docs: $(MAKE) -C docs $(MAKE) apidocs diff --git a/debian/control b/debian/control index 9fd54a19..4462a1c5 100644 --- a/debian/control +++ b/debian/control @@ -38,6 +38,9 @@ Build-Depends: # For the network tests curl <!nocheck>, python3-requests <!nocheck>, +# For shell validation + shellcheck <!nocheck>, + zsh <!nocheck>, Standards-Version: 4.6.1 Vcs-Git: https://git.sigxcpu.org/cgit/git-buildpackage/ Vcs-Browser: https://git.sigxcpu.org/cgit/git-buildpackage/ diff --git a/debian/rules b/debian/rules index 76f08c3b..1c586b60 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,7 @@ override_dh_auto_test: ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) make + make shell-check endif execute_after_dh_auto_build: |