ci: do everything in a tmux session

This commit is contained in:
Aaron Bieber 2023-01-29 08:29:43 -07:00
parent 11ea2d85eb
commit a60bac7389
No known key found for this signature in database

11
ci
View File

@ -4,6 +4,17 @@
set -eu
NAME="CI"
SESS="-s ${NAME}"
if tux ls | grep =q "^${NAME}:"; then
tmux -u2 at -t "${NAME}"
else
temx -2 new-session -d ${SESS}
fi
tmux -2 attach-session -t "$NAME"
trap ci_error INT TERM
ci_branch=$(date +"%Y%m%dT%H%M%S%z")