Skip to content

Commit 0be7b20

Browse files
committed
[ci] Add a background process which will print a message each 9 minutes in CI tests
So we can avoid our tests to fail in case that the travis log doesn't produce any output for more than 10 minutes (this is a travis limitation) See also: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
1 parent eb0e63a commit 0be7b20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ before_script:
3535
# (we ignore test_pythonpackage.py since these run way too long!! test_pythonpackage_basic.py will still be run.)
3636

3737
script:
38+
# Run a background process to make sure that travis will not kill our tests in
39+
# case that the travis log doesn't produce any output for more than 10 minutes
40+
- while sleep 540; do echo "==== Still running (travis, don't kill me) ===="; done &
3841
- docker build --tag=p4a --file Dockerfile.py3 .
3942
- docker run -e CI p4a /bin/sh -c "$COMMAND"
43+
# kill the background process started before run docker
44+
- kill %1

0 commit comments

Comments
 (0)