break out autopkgtest into a standalone script

This commit is contained in:
Hans-Christoph Steiner 2018-06-14 16:05:57 +02:00
parent a25a9565ac
commit a5850ff189
3 changed files with 19 additions and 2 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-autopkgtest /usr/bin/
COPY gitlab-ci-lintian /usr/bin/
COPY gitlab-ci-enable-sid /usr/bin/
COPY gitlab-ci-enable-experimental /usr/bin/

16
gitlab-ci-autopkgtest Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash -e
. /usr/share/gitlab-ci-common
! test -z "$CI_PROJECT_DIR"
set -x
$apt_get update
$apt_get install autopkgtest autodep8
if [ ! -e $CI_PROJECT_DIR/debian/tests/control ]; then
autodep8
fi
autopkgtest $CI_PROJECT_DIR/../*.changes -- null

View File

@ -53,8 +53,8 @@ if [[ ! -f $lockfile ]] ; then
gitlab-ci-lintian
if [ -e debian/tests/control ]; then
autopkgtest ../*.changes -- null
if [ -e $CI_PROJECT_DIR/debian/tests/control ]; then
gitlab-ci-autopkgtest
fi
fi