Ohmbrewer / ohmbrewer

The web application for a happy brew day.
http://ohmbrewer.github.io
0 stars 0 forks source link

Adds knapsack support to parallelize Travis CI builds #112

Closed kyleoliveira closed 8 years ago

kyleoliveira commented 8 years ago

This adds the Knapsack gem for parallelizing Travis CI builds. This means that our tests will run on two nodes instead of one and (hopefully) complete twice as fast. (Looks about right based on our current suite, btw.)

You will need to add the following environment variables when using rake to run tests now:

CI_NODE_TOTAL=1
CI_NODE_INDEX=0

Further, if you're running the rake task via RubyMine, you should check the option for "Run the script in context of the bundle (bundle exec)" under the Bundler tab.

The final thing to consider is that if we add a bunch of tests (particularly long running ones), we should update the JSON included in this commit (see the Knapsack gem documentation, future maintainer). We shouldn't have to do it too often, though.