Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Sort rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Feb 17, 2016
1 parent 6dbbace commit e83b913
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,38 @@ task default: [:doc, :rubocop, :foodcritic, :spec]
desc 'Run all tasks'
task all: [:doc, :rubocop, :foodcritic, :spec, 'kitchen:all']

desc 'Run kitchen integration tests'
task test: ['kitchen:all']

desc 'Build documentation'
task doc: [:readme, :yard]

desc 'Run kitchen integration tests'
task test: ['kitchen:all']

desc 'Generate README.md from _README.md.erb'
task :readme do
sh(*%w(bundle exec knife cookbook doc -t _README.md.erb .))
end

YARD::Config.load_plugin 'redcarpet-ext'
YARD::Rake::YardocTask.new do |t|
t.files = ['**/*.rb', '-', 'README.md', 'CHANGELOG.md', 'LICENSE.txt']
t.options = ['--markup-provider=redcarpet', '--markup=markdown']
end

RuboCop::RakeTask.new do |t|
t.formatters = ['progress']
end

FoodCritic::Rake::LintTask.new do |t|
t.options = { fail_tags: ['all'] }
end

RSpec::Core::RakeTask.new

begin
require 'kitchen/rake_tasks'
Kitchen::RakeTasks.new
rescue LoadError
puts '>>>>> Kitchen gem not loaded, omitting tasks.' unless ENV['CI']
end

RSpec::Core::RakeTask.new

RuboCop::RakeTask.new do |t|
t.formatters = ['progress']
end

Stove::RakeTask.new

YARD::Config.load_plugin 'redcarpet-ext'
YARD::Rake::YardocTask.new do |t|
t.files = ['**/*.rb', '-', 'README.md', 'CHANGELOG.md', 'LICENSE.txt']
t.options = ['--markup-provider=redcarpet', '--markup=markdown']
end

0 comments on commit e83b913

Please sign in to comment.