We have been trying to solve this problem for a very long time.
In the logs it outputs this: the job exceeded the maximum log length, and has been terminated.
Hey,
Please reach us out with the given build link/URL from support@travis-ci.com, we will happily assist you.
Thanks.