From 1312254a5dddf2e1b5260b894b5e8c8296b7b37b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 4 Jun 2018 20:15:41 +0200 Subject: [PATCH] automatically run autopkgtest when the package includes them --- gitlab-ci-git-buildpackage | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitlab-ci-git-buildpackage b/gitlab-ci-git-buildpackage index 813bb4e..f4c52bc 100755 --- a/gitlab-ci-git-buildpackage +++ b/gitlab-ci-git-buildpackage @@ -44,6 +44,10 @@ if [[ ! -f $lockfile ]] ; then 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" + + if [ -e debian/tests/control ]; then + autopkgtest ../*.changes -- null + fi fi [[ $CI ]] && touch $lockfile