diff --git a/.travis.yml b/.travis.yml index bc39865..fc6fbfa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,8 +13,8 @@ install: - travis_retry appraisal install script: - - bundle exec rubocop - - appraisal rake + - bundle exec rake rubocop + - appraisal rake spec gemfile: - Gemfile diff --git a/source/Rakefile b/source/Rakefile index 853efa8..507156c 100644 --- a/source/Rakefile +++ b/source/Rakefile @@ -1,6 +1,7 @@ require 'rubygems' require 'bundler/setup' require 'rspec/core/rake_task' +require 'rubocop/rake_task' # Immediately sync all stdout so that tools like buildbot can # immediately load in the output. @@ -17,5 +18,8 @@ Bundler::GemHelper.install_tasks # Install the `spec` task so that we can run tests. RSpec::Core::RakeTask.new +# Install the `rubocop` task +RuboCop::RakeTask.new + # Default task is to run the unit tests -task default: 'spec' +task default: %w(rubocop spec)