move lintian runs to script called gitlab-ci-lintian

This commit is contained in:
Hans-Christoph Steiner 2018-06-14 16:00:41 +02:00
parent 494870826c
commit a25a9565ac
3 changed files with 13 additions and 4 deletions

View File

@ -28,6 +28,7 @@ RUN mkdir -p /usr/share/man/man1 \
COPY gitlab-ci-git-buildpackage /
COPY gitlab-ci-common /usr/share/
COPY gitlab-ci-aptly /usr/bin/
COPY gitlab-ci-lintian /usr/bin/
COPY gitlab-ci-enable-sid /usr/bin/
COPY gitlab-ci-enable-experimental /usr/bin/

View File

@ -51,10 +51,7 @@ if [[ ! -f $lockfile ]] ; then
gbp buildpackage -uc -us
fi
echo "performing general and experimental lintian checks"
su --shell /bin/sh nobody --command "lintian --color always -EviIL +pedantic ../*.changes" || true
echo "performing ftp-master-rejects lintian checks"
su --shell /bin/sh nobody --command "lintian --color always -viF ../*.changes"
gitlab-ci-lintian
if [ -e debian/tests/control ]; then
autopkgtest ../*.changes -- null

11
gitlab-ci-lintian Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash -e
. /usr/share/gitlab-ci-common
$apt_get update
$apt_get install lintian
echo "performing general and experimental lintian checks"
su --shell /bin/sh nobody --command "lintian --color always -EviIL +pedantic ../*.changes" || true
echo "performing ftp-master-rejects lintian checks"
su --shell /bin/sh nobody --command "lintian --color always -viF ../*.changes"