diff --git a/.circleci/config.yml b/.circleci/config.yml index 8e8b43069..4aa828b4b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -194,17 +194,7 @@ jobs: command: lintian --version - run: name: Run lintian - command: | - set -exu - while read -r file; do - lintian \ - --check \ - --no-tag-display-limit \ - --suppress-tags-from-file .lintianignore \ - --no-cfg \ - --fail-on warning,error \ - "${file}" - done < <(ls *.deb) + command: ./dev-scripts/check-debian-pkg build_bundle: executor: python steps: diff --git a/dev-scripts/check-debian-pkg b/dev-scripts/check-debian-pkg new file mode 100755 index 000000000..c7173f991 --- /dev/null +++ b/dev-scripts/check-debian-pkg @@ -0,0 +1,22 @@ +#!/bin/bash + +# Perform static analysis on all .deb files in the working directory. + +# Exit on first failure. +set -e + +# Echo commands before executing them, by default to stderr. +set -x + +# Exit on unset variable. +set -u + +while read -r file; do + lintian \ + --check \ + --no-tag-display-limit \ + --suppress-tags-from-file .lintianignore \ + --no-cfg \ + --fail-on warning,error \ + "${file}" +done < <(ls -- *.deb)