Alter travis config to cache gems

We sometimes see failures to connect and download gems. This is
annoying.

Setting this now so that we can take advantage of it if the feature
is ever rolled out to the free tier.