Skip to content

Commit c7b8c54

Browse files
committed
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.
1 parent 1f08865 commit c7b8c54

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ install:
1818

1919
script:
2020
- env CAPTURE_STDERR=false bundle exec rake
21-
- bundle exec rake rubocop
2221

2322
env:
2423
- "RAILS_VERSION=4.0"

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ Rake::TestTask.new do |t|
3636
t.verbose = true
3737
end
3838

39-
task :default => :test
39+
task default: [:test, :rubocop]

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ install:
2121
- bundle install --retry=3
2222

2323
test_script:
24-
- bundle exec rake
24+
- bundle exec rake test
2525

2626
build: off

0 commit comments

Comments
 (0)