Sha256: 22557ef089915ad23f341327fb782e0730b8d7059c2b9b269b2a996f489e9531

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true
require "bundler/gem_tasks"
require "chef/provisioning/vsphere_driver/version"
require "rspec/core/rake_task"
require "chefstyle"
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

3 entries across 3 versions & 1 rubygems

Version Path
chef-provisioning-vsphere-2.0.5 Rakefile
chef-provisioning-vsphere-2.0.4 Rakefile
chef-provisioning-vsphere-2.0.3 Rakefile