branches:
  only:
    - master

language: ruby
cache: bundler
rvm:
  # The latest ruby version
  - 2.4.0
  # OS X 10.9.5-10.10.0 (2.0.0-p481)
  - 2.0.0-p481
  # OS X 10.9.3-10.9.4
  - 2.0.0-p451
  # OS X 10.9.0-10.9.2
  # TODO currently unavailable: https://github.com/travis-ci/travis-ci/issues/2918
  # - 2.0.0-p247

matrix:
  include:
  - rvm: 2.4.0
    env: COCOAPODS_CI_TASKS=LINT

script:
  - bundle exec rake spec:all
  - if [ "$COCOAPODS_CI_TASKS" = "LINT" ]; then bundle exec danger; fi

addons:
 code_climate:
   repo_token: fcf708528e1eca6e8a8bf8f7be3bd24e4478b019c4cd7860325c141dd52aa152

branches:
  only:
    - master

language: ruby
cache: bundler
rvm:
  - 2.0.0-p647
  - 2.3.4
  - 2.4.1

matrix:
  include:
  - rvm: 2.4.1
    env: COCOAPODS_CI_TASKS=LINT

script:
  - bundle exec rake spec:all
  - if [ "$COCOAPODS_CI_TASKS" = "LINT" ]; then bundle exec danger; fi

addons:
 code_climate:
   repo_token: fcf708528e1eca6e8a8bf8f7be3bd24e4478b019c4cd7860325c141dd52aa152

Align ruby versions with CocoaPods/CocoaPods
[Travis] Align ruby versions with CocoaPods/CocoaPods
