Add debug echo statement.

This commit is contained in:
Paulo Matos 2019-03-07 12:53:46 +01:00
parent 821158dcd8
commit f00286335a

View File

@ -132,9 +132,11 @@ GUEST_DEPENDENCIES="build-essential git m4 sudo python libfontconfig1-dev make g
function setup_chroot {
# Host dependencies
echo "Installing host dependencies"
apt-get install -y ${HOST_DEPENDENCIES}
# Create chrooted environment
echo "Creating chroot environment"
mkdir ${CHROOT_DIR}
debootstrap --foreign --no-check-gpg --include=fakeroot,build-essential \
--arch=${ARCH} ${DEBIAN} ${CHROOT_DIR} ${DEBIAN_MIRROR}
@ -150,11 +152,13 @@ function setup_chroot {
chmod a+x envvars.sh
# Install dependencies inside chroot
echo "Installing guest dependencies"
chroot ${CHROOT_DIR} apt-get update
chroot ${CHROOT_DIR} apt-get --allow-unauthenticated install \
-y ${GUEST_DEPENDENCIES}
# Create build dir and copy travis build files to our chroot environment
echo "Copying into chroot: ${BUILD_DIR}/ -> ${CHROOT_DIR}/${BUILD_DIR}/"
mkdir -p ${CHROOT_DIR}/${BUILD_DIR}
rsync -av ${BUILD_DIR}/ ${CHROOT_DIR}/${BUILD_DIR}/
@ -162,6 +166,7 @@ function setup_chroot {
touch ${CHROOT_DIR}/.chroot_is_done
# Call ourselves again which will cause tests to run
echo "Recursively calling script"
if [ ${MAKE_TARGET} = "cs" ]; then
chroot ${CHROOT_DIR} bash -c "cd ${BUILD_DIR} && ./.gitlab/build-test.sh" --jobs ${JOBS} --with-project-path ${BUILD_DIR} --enable-cs
else