Sha256: 1a6a26b9d484f343ee8c82eccdd043cfd188cb115db9ed03c27244e55de9967a

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

# -*- encoding: utf-8 -*-

require "bundler/gem_tasks"

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:test)

desc "Display LOC stats"
task :stats do
  puts "\n## Production Code Stats"
  sh "countloc -r lib/kitchen lib/kitchen.rb"
  puts "\n## Test Code Stats"
  sh "countloc -r spec features"
end

require "finstyle"
require "rubocop/rake_task"
RuboCop::RakeTask.new(:style) do |task|
  task.options << "--display-cop-names"
end

desc "Run all quality tasks"
task :quality => [:style, :stats]

require "yard"
YARD::Rake::YardocTask.new

begin
  task :default => [:test, :quality]

  require "github_changelog_generator/task"
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
    config.future_release = Kitchen::Driver::EC2_VERSION
    config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
    config.bug_labels = "bug,Bug,Improvement".split(",")
    config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog," \
                            ",Exclude From Changelog,Question,Upstream Bug,Discussion".split(",")
  end
rescue LoadError
  task :changelog do
    raise "github_changelog_generator not installed! gem install github_changelog_generator."
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kitchen-ec2-1.3.2 Rakefile
kitchen-ec2-1.3.1 Rakefile
kitchen-ec2-1.3.0 Rakefile
kitchen-ec2-1.2.0 Rakefile
kitchen-ec2-1.1.0 Rakefile
kitchen-ec2-1.0.1 Rakefile
kitchen-ec2-1.0.0 Rakefile