Skip to content

Commit a70f953

Browse files
committed
Replace travis_wait with a loop printing "\a" to stdout every minute
1 parent 8c8ee8f commit a70f953

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,11 @@ matrix:
9898

9999
before_script: ./autogen.sh
100100

101-
# 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)
102-
script: travis_wait 30 ./contrib/travis.sh
101+
# 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)
102+
script:
103+
- function keep_alive() { while true; do echo -en "\a"; sleep 60; done }
104+
- keep_alive &
105+
- ./contrib/travis.sh
103106

104107
after_script:
105108
- cat ./tests.log

0 commit comments

Comments
 (0)