Created
June 24, 2014 17:22
-
-
Save slyness/457239ac54b568585e24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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