]> Git Repo - secp256k1.git/commitdiff
Replace travis_wait with a loop printing "\a" to stdout every minute
authorElichai Turkel <[email protected]>
Sun, 3 May 2020 15:01:28 +0000 (18:01 +0300)
committerElichai Turkel <[email protected]>
Mon, 11 May 2020 13:02:25 +0000 (16:02 +0300)
.travis.yml

index 8b9d7adea9dea64a7c8567885b606e3a3ca2794f..d9878cfa34dbfdf89d3d67809c047a4f8a659905 100644 (file)
@@ -92,8 +92,12 @@ before_install:
 
 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
+  - kill %keep_alive
 
 after_script:
     - cat ./tests.log
This page took 0.021356 seconds and 4 git commands to generate.