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.
This commit is contained in:
Mauro George 2015-09-30 19:48:31 -03:00
parent 1f08865a10
commit c7b8c54952
3 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ install:
script:
- env CAPTURE_STDERR=false bundle exec rake
- bundle exec rake rubocop
env:
- "RAILS_VERSION=4.0"

View File

@ -36,4 +36,4 @@ Rake::TestTask.new do |t|
t.verbose = true
end
task :default => :test
task default: [:test, :rubocop]

View File

@ -21,6 +21,6 @@ install:
- bundle install --retry=3
test_script:
- bundle exec rake
- bundle exec rake test
build: off