description: 'Update sbuild chroots'
project-type: matrix
execution-strategy:
+ sequential: true
touchstone:
expr: '(distribution=="sid") && (architecture=="amd64")'
axes:
- axis: *arch_axis
- axis: *dist_axis
triggers:
- - timed: "@midnight"
+ - timed: "H */6 * * *"
builders:
- shell: 'sbuild-update.sh'
publishers:
schroot -l | grep -q $chroot || \
error "There is no schroot definition for $chroot"
-# update chroot
-sbuild-update.sh
-APT_UPDATE="--no-apt-update"
-
# decide if we should build arch:all packages
case $architecture in
amd64)
export DEB_PG_SUPPORTED_VERSIONS
if [ "$DEB_PG_SUPPORTED_VERSIONS" != "pgdg" ]; then
- APT_UPDATE="--apt-update"
ADD_DEPENDS="--add-depends=postgresql-server-dev-$DEB_PG_SUPPORTED_VERSIONS --chroot-setup-commands=sbuild-pgdg-components"
fi
echo "Bulding $PACKAGE (DEB_PG_SUPPORTED_VERSIONS=$DEB_PG_SUPPORTED_VERSIONS)"
set -x
flock --shared 9
- sbuild --nolog --batch $APT_UPDATE --no-apt-distupgrade \
+ sbuild --nolog --batch \
-d $distribution-pgdg --arch $architecture ${ARCH_ALL:-} \
--finished-build-commands='adt-sbuild %SBUILD_BUILD_DIR %SBUILD_PKGBUILD_DIR' \
${ADD_DEPENDS:-} $DSC