Sha256: 07312089c0b91a50a8a97f492fab9a27ad81770e97399fb38d2700f045e1e048

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

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

require "bundler/gem_tasks"

require "rspec/core/rake_task"
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |t|
  t.pattern = "spec/**/*_spec.rb"
end

desc "Run all test suites"
task :test => [:spec]

require "cane/rake_task"
desc "Run cane to check quality metrics"
Cane::RakeTask.new do |cane|
  cane.canefile = "./.cane"
end

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

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

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

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

require "github_changelog_generator/task"

GitHubChangelogGenerator::RakeTask.new :changelog do |config|
  config.future_release = Kitchen::Driver::VAGRANT_VERSION
  config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature,Improvement".split(",")
  config.bug_labels = "bug,Bug".split(",")
  config.exclude_labels = %w[Duplicate Question Discussion No_Changelog]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kitchen-vagrant-0.21.1 Rakefile
kitchen-vagrant-0.21.0 Rakefile
kitchen-vagrant-0.20.0 Rakefile