language: ruby
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.5
  - 2.2.1
  - rbx
  - ruby-head
  - jruby-head

matrix:
  allow_failures:
    - rvm: 1.9.3
    - rvm: ruby-head
    - rvm: jruby-head

addons:
  code_climate:
    repo_token: 20a1139ef1830b4f813a10a03d90e8aa179b5226f75e75c5a949b25756ebf558

# Send builds to container-based infrastructure
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
language: ruby
rvm:
  - 1.9.3
  - 2.0
  - 2.1
  - 2.2
  - rbx
  - ruby-head
  - jruby-head

matrix:
  allow_failures:
    - rvm: 1.9.3
    - rvm: ruby-head
    - rvm: jruby-head

addons:
  code_climate:
    repo_token: 20a1139ef1830b4f813a10a03d90e8aa179b5226f75e75c5a949b25756ebf558

Use ruby version aliases in Travis config
Use ruby version aliases in Travis config

This will tell Travis to always use the latest version with specified minor version. 
Remove the need of updating patch level version number.

Also add `sudo: true` for faster build