Install fewer gems on Travis
composerinteralia opened this issue · comments
As discussed in #367 (comment)
Our tests generate a full rails app, but I don't think they need most of the libraries included by default. Unneeded gems make our test suite slower, and increase the chance of getting errors when new versions of each gem come out.
We may not need to include all of these libraries. Passing --skip javascript
, for example, sped up our test suite significantly. We may also want to pass --skip-action-mailer
, --skip-active-storage
, --skip-action-cable
, etc. We could also try passing --api
.
Additionally, we may want to explore passing --skip bundle
and then manually running bundle install --without development
to avoid installing unnecessary development gems.
I think we can split it into a few PRs:
- With adding pass options(--skip-..., --api) ( I already play with it on my local and looks like it became faster, I can create PR to check it on Travis )
- With experiments with
--skip bundle
- With the revision of the gems