Sha256: 35c7eb4d2b036c09197434409944ed853b069fcb64415461478e2b5739961174

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 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 "chefstyle"
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 => [: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

6 entries across 6 versions & 1 rubygems

Version Path
kitchen-vagrant-1.3.2 Rakefile
kitchen-vagrant-1.3.1 Rakefile
kitchen-vagrant-1.3.0 Rakefile
kitchen-vagrant-1.2.1 Rakefile
kitchen-vagrant-1.2.0 Rakefile
kitchen-vagrant-1.1.1 Rakefile