run script with whole git-buildpackage process
This commit is contained in:
parent
70e480390b
commit
0c02510d94
|
|
@ -24,3 +24,5 @@ RUN printf "path-exclude=/usr/share/locale/*\npath-exclude=/usr/share/man/*\npat
|
|||
|
||||
COPY test /
|
||||
|
||||
COPY gitlab-ci-git-buildpackage /
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
apt-get update
|
||||
apt-get -y dist-upgrade
|
||||
export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control`
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential dpkg-dev fakeroot git-buildpackage pristine-tar $BUILD_DEPENDS
|
||||
apt-get -y autoremove --purge
|
||||
dpkg-checkbuilddeps
|
||||
echo "make master branch current for gbp"
|
||||
git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
|
||||
gbp buildpackage -us -uc
|
||||
Loading…
Reference in New Issue