Rakefile in picture_from-0.0.1 vs Rakefile in picture_from-1.0.0
- old
+ new
@@ -1,7 +1,8 @@
#!/usr/bin/env rake
require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
begin
Bundler.setup :default, :development
Bundler::GemHelper.install_tasks
rescue Bundler::BundlerError => error
@@ -15,8 +16,15 @@
ENV['COVERAGE'] = 'true'
Rake::Task['spec'].execute
end
RSpec::Core::RakeTask.new(:spec)
+RuboCop::RakeTask.new(:rubocop)
desc 'Default: run tests'
task default: [:spec]
+
+desc 'C.I: run tests and rubocop'
+task :ci do
+ Rake::Task['rubocop'].execute
+ Rake::Task['spec'].execute
+end