Sha256: d9778fb74c7df42c0d3fb6e3cb4219027e404306ab8bafc7836441f3108e0512
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 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] begin 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 rescue LoadError task :changelog do raise "github_changelog_generator not installed! gem install github_changelog_generator." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kitchen-vagrant-1.3.4 | Rakefile |
kitchen-vagrant-1.3.3 | Rakefile |