before_script:
  - ./scripts/prepare_build.sh
  - git submodule update --init
  - ruby -v
  - which ruby
  - gem install bundler --no-ri --no-rdoc
  - bundle install

rspec:
  script:
  - bundle exec rspec spec
  tags:
    - ruby

rubocop:
  script:
    - bundle exec rubocop
  tags:
    - ruby

image: ruby:2.1

before_script:
  - ./scripts/prepare_build.sh
  - ruby -v
  - gem install bundler --no-ri --no-rdoc
  - bundle install -j $(nproc) --path vendor

cache:
  paths:
    - vendor/ruby

rspec:
  script:
  - bundle exec rspec spec

rspec2.3:
  image: ruby:2.3.1
  script:
  - bundle exec rspec spec

rubocop:
  script:
    - bundle exec rubocop

Test against Ruby 2.3 and use caching of gems
Test against Ruby 2.3 and use caching of gems
