dependencies: cache_directories: - '~/.rvm/rubies' - 'vendor' override: - > case $CIRCLE_NODE_INDEX in 0) rvm-exec 2.1.9 gem install bundler rvm-exec 2.1.9 bash -c "bundle check --path=vendor/bundle_2.1 || bundle install --path=vendor/bundle_2.1" ;; 1) rvm-exec 2.2.5 gem install bundler rvm-exec 2.2.5 bash -c "bundle check --path=vendor/bundle_2.2 || bundle install --path=vendor/bundle_2.2" ;; 2) rvm-exec ruby-head gem install bundler rvm-exec ruby-head bash -c "bundle check --path=vendor/bundle_head || bundle install --path=vendor/bundle_head" ;; esac test: override: - case $CIRCLE_NODE_INDEX in 0) rvm-exec 2.1.9 bundle exec rake ;; 1) rvm-exec 2.2.5 bundle exec rake ;; 2) rvm-exec ruby-head bundle exec rake ;; esac: parallel: true