From 4de945073f56a69a1c5ee4f1ac12d59ea7e8af3b Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Wed, 5 Aug 2015 15:04:45 +0200 Subject: [PATCH] fix travis build --- .travis.yml | 8 ++++---- Rakefile | 3 ++- lib/package.rb | 1 + test.rb | 2 ++ test2.rb | 2 ++ 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f47fefd..08e207f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: ruby -ruby: - - 1.9.3 - - 2.0.0 - - 2.1.3 +rvm: + - 2.1 + - 2.2 + - rbx-2.5 script: rake spec rubocop diff --git a/Rakefile b/Rakefile index dd6852f..e93505f 100644 --- a/Rakefile +++ b/Rakefile @@ -18,4 +18,5 @@ task :coverage do Rake::Task['spec'].execute end -task default: :spec +task default: :ci +task ci: [:spec, :rubocop] diff --git a/lib/package.rb b/lib/package.rb index c81a6b7..34c8b07 100644 --- a/lib/package.rb +++ b/lib/package.rb @@ -16,6 +16,7 @@ class Package < Module end # Return the package as a value + # rubocop:disable Lint/UnusedMethodArgument def import_to_value(_binding, namespace, as: nil) Package.new(namespace) end diff --git a/test.rb b/test.rb index 7145af8..9069230 100644 --- a/test.rb +++ b/test.rb @@ -1,3 +1,5 @@ +# rubocop:disable all + $LOAD_PATH.push File.expand_path(File.join(File.dirname(__FILE__), 'lib')) require 'pry' diff --git a/test2.rb b/test2.rb index 4fe96ce..9928bb2 100644 --- a/test2.rb +++ b/test2.rb @@ -1,3 +1,5 @@ +# rubocop:disable all + require 'pp' #require 'pry' require 'binding_of_caller'