From: Frank Brehm Date: Thu, 29 Dec 2022 11:17:02 +0000 (+0100) Subject: Adding Github output sections into gitlab/python-setup-template.yaml X-Git-Tag: v1.0~23 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=f7e7c029cb7a0d666f570267cb50c03210ad913d;p=pixelpark%2Fpython-packaging.git Adding Github output sections into gitlab/python-setup-template.yaml --- diff --git a/gitlab/python-setup-template.yaml b/gitlab/python-setup-template.yaml index cafad67..609720e 100644 --- a/gitlab/python-setup-template.yaml +++ b/gitlab/python-setup-template.yaml @@ -3,8 +3,18 @@ .setup-python-environment: before_script: - locale -a - - apt update - - apt install --yes sudo locales gettext + - > + echo -e "\e[0Ksection_start:$( date +%s ):apt_update[collapsed=true]\r\e[0KAPT update ..." + apt update + echo -e "\e[0Ksection_end:$( date +%s ):apt_update\r\e[0K" + - > + echo -e "\e[0Ksection_start:$( date +%s ):dist_upgrade[collapsed=true]\r\e[0KAPT dist-upgrade ..." + apt dist-upgrade --yes + echo -e "\e[0Ksection_end:$( date +%s ):dist_upgrade\r\e[0K" + - > + echo -e "\e[0Ksection_start:$( date +%s ):install_additional[collapsed=true]\r\e[0KInstalling additional packages ..." + apt install --yes --no-install-recommends sudo locales gettext + echo -e "\e[0Ksection_end:$( date +%s ):install_additional\r\e[0K" - > if test -f /etc/locale.gen; then echo "/etc/locale.gen:" @@ -23,10 +33,17 @@ else echo 'de_DE.UTF-8 UTF-8' >> /etc/locale.gen fi - - locale-gen + - > + echo -e "\e[0Ksection_start:$( date +%s ):locale_gen[collapsed=true]\r\e[0KGenerate locales ..." + locale-gen + echo -e "\e[0Ksection_end:$( date +%s ):locale_gen\r\e[0K" - locale -a - - pip install --upgrade pip - > + echo -e "\e[0Ksection_start:$( date +%s ):update_pip[collapsed=true]\r\e[0KUpdating pip via pip ..." + pip install --upgrade pip + echo -e "\e[0Ksection_end:$( date +%s ):update_pip\r\e[0K" + - > + echo -e "\e[0Ksection_start:$( date +%s ):update_outdated[collapsed=true]\r\e[0KUpdating Outdated pip modules ..." if [[ -n "${UPDATE_ALL_PIP_MODULES}" && "${UPDATE_ALL_PIP_MODULES}" == "y" ]] ; then echo ' ' echo "Updating all outdated PIP modules." @@ -37,11 +54,14 @@ done echo ' ' fi + echo -e "\e[0Ksection_end:$( date +%s ):update_outdated\r\e[0K" - > + echo -e "\e[0Ksection_start:$( date +%s ):install_requirements[collapsed=true]\r\e[0KInstalling required pip modules ..." if [[ -r requirements.txt ]] ; then echo ' ' echo "Installing all required PIP modules." pip install -r requirements.txt --upgrade --upgrade-strategy eager fi + echo -e "\e[0Ksection_end:$( date +%s ):install_requirements\r\e[0K" # vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list