Precompile Assets For Faster Test Suites With CircleCI
Precompiling Rails assets with CircleCI speeds up test suites by 50% or more. Add `assets:precompile` step to cache results in `.circle/config.yml`.
Most of our projects have a big code base of assets which dramatically reduce not only browser page rendering but also increase passing test suites. The Rails asset pipeline provides an assets:precompile rake task to allow assets to be compiled and cached up front rather than compiled every time the app boots. We found that with precompiled assets all test suite is passed faster. For some project, we got 50% improvement. This approach shows how you can skip compilation of assets every time you run a test. Solution This solution for CircleCI, but you could migrate it to other CI. A...