Skip to content

Commit

Permalink
Add rubocop in rake
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiamarchi committed Jun 22, 2014
1 parent a6b7ca7 commit f3984d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ install:
- travis_retry appraisal install

script:
- bundle exec rubocop
- appraisal rake
- bundle exec rake rubocop
- appraisal rake spec

gemfile:
- Gemfile
Expand Down
6 changes: 5 additions & 1 deletion source/Rakefile
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)

0 comments on commit f3984d3

Please sign in to comment.