简体   繁体   中英

Travis build timeouts even though test output reports success

My Travis build is timing out for some reason. Here is the link to the logs: https://travis-ci.org/madedotcom/atomicpuppy/builds/70202335

And my current travis yml https://github.com/madedotcom/atomicpuppy/blob/master/.travis.yml

I have tried running it with a normal script command

script: run-contexts --verbose

As well as creating a bash script that ran the tests and exited with $?

script: ./run-tests.sh

# run-tests.sh
run-contexts --verbose ./tests 2>/dev/null
exit $?

Even this didn't help.

My best guess is that there is some task running in the background of my Travis build due to depending on asynchronous python libs, but how can I debug that on Travis? Is there any way to increase verbosity?

Worth adding that locally tests are very fast to run, and exit with 0 without any problems, using the same commands.

SOLUTION: Upgrade the version of HTTPretty .

Turns out there was a known issue with a library called HTTPretty ( issue can be found here ) that caused the test runner to stall on travis without producing any errors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM