diff --git a/.gitlab/build-test.sh b/.gitlab/build-test.sh index ac03369c83..a4e352044f 100755 --- a/.gitlab/build-test.sh +++ b/.gitlab/build-test.sh @@ -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