Skip to content

Commit 99bd661

Browse files
committed
Replace travis_wait with a loop printing "\a" to stdout every minute
1 parent bc818b1 commit 99bd661

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ before_install:
9292

9393
before_script: ./autogen.sh
9494

95-
# travis_wait extends the 10 minutes without output allowed (https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received)
96-
script: travis_wait 30 ./contrib/travis.sh
95+
# travis auto terminates jobs that go for 10 minutes without printing to stdout, but travis_wait doesn't work well with forking programs like valgrind (https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received https://github.com/bitcoin-core/secp256k1/pull/750#issuecomment-623476860)
96+
script:
97+
- function keep_alive() { while true; do echo -en "\a"; sleep 60; done }
98+
- keep_alive &
99+
- ./contrib/travis.sh
100+
- kill %keep_alive
97101

98102
after_script:
99103
- cat ./tests.log

0 commit comments

Comments
 (0)