expire artifacts
This commit is contained in:
parent
a4baf0170f
commit
7f91010f89
|
@ -27,6 +27,31 @@ stages:
|
||||||
- build
|
- build
|
||||||
- publish
|
- 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:
|
build_dep_wheels:
|
||||||
cache:
|
cache:
|
||||||
- key: dep-cargo
|
- key: dep-cargo
|
||||||
|
@ -66,6 +91,8 @@ build_dep_wheels:
|
||||||
- venv/bin/pip install --upgrade pip wheel
|
- venv/bin/pip install --upgrade pip wheel
|
||||||
- venv/bin/pip debug --verbose
|
- venv/bin/pip debug --verbose
|
||||||
script:
|
script:
|
||||||
|
# show time stats
|
||||||
|
- *time_script
|
||||||
# build basic wheels
|
# build basic wheels
|
||||||
- venv/bin/pip wheel --check-build-dependencies -w wheelhouse -r requirements.txt
|
- venv/bin/pip wheel --check-build-dependencies -w wheelhouse -r requirements.txt
|
||||||
# remove universal wheels (those are probably downloaded from pypi or already uploaded)
|
# remove universal wheels (those are probably downloaded from pypi or already uploaded)
|
||||||
|
|
Loading…
Reference in New Issue