From 7f91010f89980027d35ed7e86ff3d021dc4ee8b5 Mon Sep 17 00:00:00 2001 From: JuniorJPDJ Date: Sun, 27 Nov 2022 13:37:30 +0000 Subject: [PATCH] expire artifacts --- .gitlab-ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fafc57417..1a1829619 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,32 @@ stages: - deps_build - build - publish - + +.time_script: &time_script + | + echo Timer start! + procstarttime=$(date -u '+%s') + + s_timestamp() { + while read -r line; do + curtime=$(date -u '+%s') + deltatime=$(( curtime - procstarttime )) + timestamp="$(printf "%03d:%02d" $(( deltatime / 60 )) $(( deltatime % 60 )))" + + # by nature BASH might run process subst twice when using >&2 pipes. This is a lazy + # way to avoid dumping two timestamps on the same line: + if [[ "$line" != \[${timestamp%% *}* ]]; then + echo "[$timestamp] $line" + else + echo "$line" + fi + done + } + + exec 1> >(s_timestamp) + exec 2> >(s_timestamp) + + build_dep_wheels: cache: - key: dep-cargo @@ -66,6 +91,8 @@ build_dep_wheels: - venv/bin/pip install --upgrade pip wheel - venv/bin/pip debug --verbose script: + # show time stats + - *time_script # build basic wheels - venv/bin/pip wheel --check-build-dependencies -w wheelhouse -r requirements.txt # remove universal wheels (those are probably downloaded from pypi or already uploaded)