chore: retry certain steps on TravisCI to get more stable builds

http://blog.travis-ci.com/2013-05-20-network-timeouts-build-retries/

Closes #249