Skip to content

Commit

Permalink
Replace travis_wait with a loop printing "\a" to stdout every minute
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed May 6, 2020
1 parent 8c8ee8f commit a70f953
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ matrix:

before_script: ./autogen.sh

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

after_script:
- cat ./tests.log
Expand Down

0 comments on commit a70f953

Please sign in to comment.