mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
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:
parent
1f08865a10
commit
c7b8c54952
@ -18,7 +18,6 @@ install:
|
||||
|
||||
script:
|
||||
- env CAPTURE_STDERR=false bundle exec rake
|
||||
- bundle exec rake rubocop
|
||||
|
||||
env:
|
||||
- "RAILS_VERSION=4.0"
|
||||
|
||||
2
Rakefile
2
Rakefile
@ -36,4 +36,4 @@ Rake::TestTask.new do |t|
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
task :default => :test
|
||||
task default: [:test, :rubocop]
|
||||
|
||||
@ -21,6 +21,6 @@ install:
|
||||
- bundle install --retry=3
|
||||
|
||||
test_script:
|
||||
- bundle exec rake
|
||||
- bundle exec rake test
|
||||
|
||||
build: off
|
||||
|
||||
Loading…
Reference in New Issue
Block a user