Skip to content

Commit

Permalink
Run RuboCop on all Ruby versions >= 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 24, 2016
1 parent 36df8e5 commit 2b1fbf1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
9 changes: 6 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2b1fbf1

Please sign in to comment.