mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 02:24:47 +00:00
debian: run lintian as part of CI
If any new changes are introduced that break plicy, this should catch them much sooner.
This commit is contained in:
parent
c29b398ad0
commit
a8a3c6f6b6
@ -36,6 +36,7 @@ RUN apt-get install -yq --no-install-recommends \
|
||||
libsoup2.4-dev \
|
||||
libsqlite3-dev \
|
||||
libtool-bin \
|
||||
lintian \
|
||||
meson \
|
||||
pkg-config \
|
||||
policykit-1 \
|
||||
|
@ -38,6 +38,7 @@ RUN apt-get install -yq --no-install-recommends \
|
||||
libsoup2.4-dev \
|
||||
libsqlite3-dev \
|
||||
libtool-bin \
|
||||
lintian \
|
||||
meson \
|
||||
pkg-config \
|
||||
policykit-1 \
|
||||
|
@ -38,6 +38,7 @@ RUN apt-get install -yq --no-install-recommends \
|
||||
libsoup2.4-dev \
|
||||
libsqlite3-dev \
|
||||
libtool-bin \
|
||||
lintian \
|
||||
meson \
|
||||
pkg-config \
|
||||
policykit-1 \
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
#build deb packages
|
||||
export DEBFULLNAME="CI Builder"
|
||||
export DEBEMAIL="ci@travis-ci.org"
|
||||
VERSION=`git describe | sed 's/-/+r/;s/-/+/'`
|
||||
[ -z $VERSION ] && VERSION=`head meson.build | grep ' version :' | cut -d \' -f2`
|
||||
|
||||
@ -12,6 +14,17 @@ sed s/quilt/native/ debian/source/format -i
|
||||
EDITOR=/bin/true dch --create --package fwupd -v $VERSION "CI Build"
|
||||
dpkg-buildpackage
|
||||
|
||||
#check lintian output
|
||||
#suppress tags that are side effects of building in docker this way
|
||||
lintian ../*changes \
|
||||
--no-tag-display-limit \
|
||||
--suppress-tags bad-distribution-in-changes-file \
|
||||
--suppress-tags source-contains-unsafe-symlink \
|
||||
--suppress-tags changelog-should-mention-nmu \
|
||||
--suppress-tags debian-watch-file-in-native-package \
|
||||
--suppress-tags source-nmu-has-incorrect-version-number \
|
||||
--allow-root
|
||||
|
||||
#test the packages install
|
||||
dpkg -i `ls ../*.deb | grep -v fwupd-tests`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user