
machine:
  ruby:
    version:
      2.1.5

dependencies:
  pre:
    - rvm-exec 2.1.5 gem install bundler
    - rvm-exec 2.2.0 gem install bundler
    - rvm-exec 2.1.5 bundle install
    - rvm-exec 2.2.0 bundle install
    - rake vendor
    - rake codegen:ffi

test:
  override:
    - rvm-exec 2.1.5 bundle exec rake
    - rvm-exec 2.2.0 bundle exec rake
  post:
    - rvm-exec 2.1.5 bundle exec rake install
    - rvm-exec 2.2.0 bundle exec rake install
    - ruby example/publish_500.rb
    - ruby example/consume_500.rb


machine:
  ruby:
    version:
      2.1.5

dependencies:
  pre:
    - rvm-exec 2.1.5 gem install bundler
    - rvm-exec 2.2.0 gem install bundler
    - rvm-exec 2.1.5 bundle install
    - rvm-exec 2.2.0 bundle install
    - rake vendor
    - rake codegen:ffi

test:
  override:
    - rvm-exec 2.1.5 bundle exec rake
    - rvm-exec 2.2.0 bundle exec rake
  post:
    - rvm-exec 2.1.5 bundle exec rake install
    - rvm-exec 2.2.0 bundle exec rake install
    - rvm-exec 2.1.5 ruby example/publish_500.rb
    - rvm-exec 2.1.5 ruby example/consume_500.rb

Use explicit ruby version in Circle CI example running.
Use explicit ruby version in Circle CI example running.
