dependencies: cache_directories: - '~/.rvm/rubies' - 'vendor' override: - > case $CIRCLE_NODE_INDEX in 0) rvm-exec 2.2.7 gem install bundler rvm-exec 2.2.7 bash -c "bundle check --path=vendor/bundle_2.1 || bundle install --path=vendor/bundle_2.2" ;; 1) rvm-exec 2.3.4 gem install bundler rvm-exec 2.3.4 bash -c "bundle check --path=vendor/bundle_2.2 || bundle install --path=vendor/bundle_2.3" ;; 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.2.7 bundle exec rake ;; 1) rvm-exec 2.3.4 bundle exec rake ;; 2) rvm-exec ruby-head bundle exec rake ;; esac: parallel: true