[WIP] Travis: Periodically update the terminal

This fixes the issue with long builds. Save the full output to a file log.txt.
At the end, show the last 60 lines of the output. This should be enough to show
most of the failures, yet Travis should be able to finish the whole build even
for very long logs.