From c7b8c549525aa1f817ba5b98939beaab77526506 Mon Sep 17 00:00:00 2001 From: Mauro George Date: Wed, 30 Sep 2015 19:48:31 -0300 Subject: [PATCH] Change default rake task to run test and rubocop The rubocop only runs in the CI this way a contributor probably will see a rubocop offense only in the CI. Running the rubocop in the default rake task we have more chance that a offense be get in the local machine. --- .travis.yml | 1 - Rakefile | 2 +- appveyor.yml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0fa5f7b9..bf922125 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,6 @@ install: script: - env CAPTURE_STDERR=false bundle exec rake - - bundle exec rake rubocop env: - "RAILS_VERSION=4.0" diff --git a/Rakefile b/Rakefile index cefdc423..64408ab4 100644 --- a/Rakefile +++ b/Rakefile @@ -36,4 +36,4 @@ Rake::TestTask.new do |t| t.verbose = true end -task :default => :test +task default: [:test, :rubocop] diff --git a/appveyor.yml b/appveyor.yml index bf271333..771ff243 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -21,6 +21,6 @@ install: - bundle install --retry=3 test_script: - - bundle exec rake + - bundle exec rake test build: off