Sha256: b0802a0fa85dcae3d81dcd24f20c91af83887f881171a1fe81b871ad8a5b414f

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true
require "bundler/gem_tasks"
require "chef/provisioning/vsphere_driver/version"
require "rspec/core/rake_task"
require "rubocop/rake_task"
require "yard"

$LOAD_PATH.unshift(File.dirname(__FILE__) + "/lib")

RuboCop::RakeTask.new(:style) do |task|
  task.options << "--display-cop-names"
end

RSpec::Core::RakeTask.new(:unit) do |task|
  task.pattern = "spec/unit_tests/*_spec.rb"
  task.rspec_opts = ["--color", "-f documentation"]
end

RSpec::Core::RakeTask.new(:integration) do |task|
  task.pattern = "spec/integration_tests/*_spec.rb"
  task.rspec_opts = ["--color", "-f documentation", "--out rspec.txt"]
end

begin
  require "github_changelog_generator/task"

  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
    config.future_release = ChefProvisioningVsphere::VERSION
    config.issues = true
  end
rescue LoadError
  puts "github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs"
end

YARD::Rake::YardocTask.new do |t|
  t.files = ["lib/**/*.rb"] # optional
  t.stats_options = ["--list-undoc"] # optional
end

task default: [:style, :unit]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-provisioning-vsphere-2.0.7 Rakefile
chef-provisioning-vsphere-2.0.6 Rakefile