Use build API

This uses the build script API from travis-ci/travis-build#211.

@joshk Does this look good in terms out timeout handling?
:+1: