Sha256: 262b1fbba791c64052244f76fc9146817333abe5da176345f6655d575fa27901

Contents?: true

Size: 1.13 KB

Versions: 18

Compression:

Stored size: 1.13 KB

Contents

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

require "bundler/gem_tasks"

require "rake/testtask"
Rake::TestTask.new(:unit) do |t|
  t.libs.push "lib"
  t.test_files = FileList["spec/**/*_spec.rb"]
  t.verbose = true
end

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

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

require "finstyle"
require "rubocop/rake_task"
RuboCop::RakeTask.new(:style) do |task|
  task.options << "--display-cop-names"
  task.options << "--lint"
  task.options << '--config' << '.rubocop.yml'
  task.patterns = ['lib/**/*.rb']
end

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

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

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

desc "Generate gem dependency graph"
task :viz do
  Bundler.with_clean_env do
    sh "bundle viz --without test development guard " \
      "--requirements --version"
  end
end

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

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
kitchen-pester-0.5.0 Rakefile
kitchen-pester-0.4.0 Rakefile
kitchen-hyperv-0.1.10 Rakefile
kitchen-hyperv-0.1.9 Rakefile
kitchen-hyperv-0.1.8 Rakefile
chef-zero-scheduled-task-0.0.6 Rakefile
kitchen-hyperv-0.1.7 Rakefile
chef-zero-scheduled-task-0.0.5 Rakefile
kitchen-hyperv-0.1.6 Rakefile
kitchen-hyperv-0.1.5 Rakefile
chef-zero-scheduled-task-0.0.4 Rakefile
chef-zero-scheduled-task-0.0.3 Rakefile
kitchen-hyperv-0.1.4 Rakefile
kitchen-hyperv-0.1.3 Rakefile
kitchen-pester-0.3.0 Rakefile
kitchen-hyperv-0.1.2 Rakefile
kitchen-hyperv-0.1.1 Rakefile
kitchen-hyperv-0.1.0 Rakefile