Skip to content

Commit

Permalink
Fail the build early on Rubocop issues
Browse files Browse the repository at this point in the history
Don't download/generate everything unless rubocop is happy with the code
  • Loading branch information
jcoyne committed Dec 9, 2015
1 parent e3888b6 commit 60d0101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/sufia-dev.rake
Expand Up @@ -13,12 +13,12 @@ RuboCop::RakeTask.new(:rubocop) do |task|
end

desc 'Run specs and style checker'
task spec: [:rubocop] do
task :spec do
RSpec::Core::RakeTask.new(:spec)
end

desc 'Spin up hydra-jetty and run specs'
task ci: ['engine_cart:generate', 'jetty:clean', 'curation_concerns:jetty:config'] do
task ci: [:rubocop, 'engine_cart:generate', 'jetty:clean', 'curation_concerns:jetty:config'] do
puts 'running continuous integration'
# No need to maintain minter state on Travis
reset_statefile! if ENV['TRAVIS'] == 'true'
Expand Down

0 comments on commit 60d0101

Please sign in to comment.