Skip to content

Instantly share code, notes, and snippets.

@slyness
Created June 24, 2014 17:22
Show Gist options
  • Select an option

  • Save slyness/457239ac54b568585e24 to your computer and use it in GitHub Desktop.

Select an option

Save slyness/457239ac54b568585e24 to your computer and use it in GitHub Desktop.
#!/usr/bin/env rake
begin
require 'emeril/rake'
rescue LoadError
puts ">>>>> Emeril gem not loaded, omitting tasks" unless ENV['CI']
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:unit) do |t|
t.rspec_opts = "--color --format documentation"
t.pattern = ["test/unit/**/*_spec.rb"]
end
require 'foodcritic'
FoodCritic::Rake::LintTask.new do |t|
t.options = { :fail_tags => ['any'] }
end
begin
require 'kitchen/rake_tasks'
Kitchen::RakeTasks.new
rescue LoadError
puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI']
end
task :default => [:foodcritic, :unit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment