Skip to content

Commit 24eee72

Browse files
ENH: Fix CircleCI Timed Out by displaying dot every minute when run tests
Because tests results were displayed only at the end, CircleCI was running into a timed out due to no output during more than 10minutes. Fixed by displaying a dot every minute.
1 parent f76d5c3 commit 24eee72

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

CMake/CircleCI/run_opengl.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,14 @@ print_app_output() {
143143

144144
trap "docker stop $container >/dev/null && print_app_output" SIGINT SIGTERM
145145

146-
docker wait $container >/dev/null
146+
# Avoid CircleCI Timed Out by displaying a dot every minute
147+
RUNNING=$(docker inspect --format="{{ .State.Running }}" $container)
148+
while "$RUNNING" == "true"
149+
do
150+
echo -n .
151+
sleep 1m
152+
RUNNING=$(docker inspect --format="{{ .State.Running }}" $container)
153+
done
147154

148155
print_app_output
149156

0 commit comments

Comments
 (0)