break out autopkgtest into a standalone script
This commit is contained in:
parent
a25a9565ac
commit
a5850ff189
|
|
@ -28,6 +28,7 @@ RUN mkdir -p /usr/share/man/man1 \
|
||||||
COPY gitlab-ci-git-buildpackage /
|
COPY gitlab-ci-git-buildpackage /
|
||||||
COPY gitlab-ci-common /usr/share/
|
COPY gitlab-ci-common /usr/share/
|
||||||
COPY gitlab-ci-aptly /usr/bin/
|
COPY gitlab-ci-aptly /usr/bin/
|
||||||
|
COPY gitlab-ci-autopkgtest /usr/bin/
|
||||||
COPY gitlab-ci-lintian /usr/bin/
|
COPY gitlab-ci-lintian /usr/bin/
|
||||||
COPY gitlab-ci-enable-sid /usr/bin/
|
COPY gitlab-ci-enable-sid /usr/bin/
|
||||||
COPY gitlab-ci-enable-experimental /usr/bin/
|
COPY gitlab-ci-enable-experimental /usr/bin/
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -53,8 +53,8 @@ if [[ ! -f $lockfile ]] ; then
|
||||||
|
|
||||||
gitlab-ci-lintian
|
gitlab-ci-lintian
|
||||||
|
|
||||||
if [ -e debian/tests/control ]; then
|
if [ -e $CI_PROJECT_DIR/debian/tests/control ]; then
|
||||||
autopkgtest ../*.changes -- null
|
gitlab-ci-autopkgtest
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue