Skip to content

Commit

Permalink
Extract dev script for running lintian
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaen committed Apr 25, 2024
1 parent ab56b3b commit 1ca0417
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 22 additions & 0 deletions dev-scripts/check-debian-pkg
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 1ca0417

Please sign in to comment.