This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some of our jobs don't check out the substrate repo.
- Loading branch information
Mira Ressel
committed
Mar 15, 2023
1 parent
e6be50a
commit 2f606ea
Showing
3 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.timestamp: | ||
before_script: | ||
- | | ||
echo "Install timestamp handler" | ||
eval ' | ||
# https://gist.github.com/altaua/477285db40181ef1793bbed5bae32c6b | ||
# based on https://gist.github.com/jstine35/e0fc0e06ec06d74bc3ebd67585bf2a1d | ||
s_datestamp() { | ||
TZ=UTC | ||
eof="" | ||
while [[ -z "${eof}" ]]; do | ||
IFS="" read -r line || eof=1 | ||
printf "[%(%F %T)T] %s\n" -1 "${line}" | ||
done | ||
} | ||
cleanup() { | ||
exec >/dev/null 2>&1 | ||
wait "${TIMESTAMP_PID}" | ||
} | ||
exec > >(s_datestamp) 2>&1 | ||
TIMESTAMP_PID=$! | ||
trap cleanup EXIT | ||
' |