From 2b1fbf134e2251da3ce745888e0394564740f102 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Sat, 24 Dec 2016 05:11:49 -0700 Subject: [PATCH] Run RuboCop on all Ruby versions >= 2 --- .travis.yml | 10 ++++++++++ Gemfile | 9 ++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 15aa7472..c9d956c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,16 @@ +before_install: + - gem update bundler + bundler_args: --without development + +cache: bundler + env: global: - JRUBY_OPTS="$JRUBY_OPTS --debug" + language: ruby + rvm: - 1.8.7 - 1.9.3 @@ -13,10 +21,12 @@ rvm: - jruby-9.0.5.0 - jruby-head - ruby-head + matrix: allow_failures: - rvm: 1.8.7 - rvm: jruby-head - rvm: ruby-head fast_finish: true + sudo: false diff --git a/Gemfile b/Gemfile index 8aa1fda4..b191527a 100644 --- a/Gemfile +++ b/Gemfile @@ -13,14 +13,17 @@ group :test do gem 'addressable', '~> 2.3.8' gem 'backports' gem 'coveralls' - gem 'mime-types', '~> 1.25', :platforms => [:jruby_18, :ruby_18] gem 'rack', '~> 1.2', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21] - gem 'rest-client', '~> 1.6.0', :platforms => [:jruby_18, :ruby_18] gem 'rspec', '>= 3' - gem 'rubocop', '>= 0.37', :platforms => [:ruby_20, :ruby_21] + gem 'rubocop', '>= 0.37', :platforms => [:ruby_20, :ruby_21, :ruby_22, :ruby_23] gem 'simplecov', '>= 0.9' gem 'yardstick' + platforms :jruby_18, :ruby_18 do + gem 'mime-types', '~> 1.25' + gem 'rest-client', '~> 1.6.0' + end + platforms :ruby_18, :ruby_19 do gem 'json', '< 2.0' gem 'term-ansicolor', '< 1.4.0'