Sha256: bfea6ffb284b5cd2aefade210592f475de8b770289061a2f256a73032be8bdd9

Contents?: true

Size: 1.36 KB

Versions: 18

Compression:

Stored size: 1.36 KB

Contents

require "bundler/gem_tasks"

begin
  require "rspec/core/rake_task"
  RSpec::Core::RakeTask.new(:spec)
rescue LoadError
  puts "Rspec not available"
  task :spec
end

WINDOWS_PLATFORM = /mswin|win32|mingw/ unless defined? WINDOWS_PLATFORM

begin
  require "cucumber"
  require "cucumber/rake/task"
  Cucumber::Rake::Task.new(:features) do |t|
    if RUBY_PLATFORM =~ WINDOWS_PLATFORM
      t.cucumber_opts = "--tags ~@not-windows"
    end
  end
rescue LoadError
  task :features
end

begin
  require "github_changelog_generator/task"

  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
    config.future_release = Berkshelf::VERSION
    config.issues = false
    config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
    config.bug_labels = "bug,Bug,Improvement".split(",")
    config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Upstream Bug,Discussion".split(",")
  end
rescue LoadError
end

task default: [:spec, :features]
task :ci do
  ENV["CI"] = "true"
  Rake::Task[:spec].invoke
  Rake::Task[:features].invoke
end

begin
  require "chefstyle"
  require "rubocop/rake_task"
  RuboCop::RakeTask.new(:style) do |task|
    task.options += ["--display-cop-names", "--no-color"]
  end
rescue LoadError
  puts "chefstyle/rubocop is not available.  gem install chefstyle to do style checking."
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
berkshelf-7.0.7 Rakefile
berkshelf-6.3.4 Rakefile
berkshelf-7.0.6 Rakefile
berkshelf-7.0.5 Rakefile
berkshelf-6.3.3 Rakefile
berkshelf-7.0.4 Rakefile
berkshelf-7.0.3 Rakefile
berkshelf-7.0.2 Rakefile
berkshelf-7.0.1 Rakefile
berkshelf-7.0.0 Rakefile
berkshelf-6.3.2 Rakefile
berkshelf-6.3.1 Rakefile
berkshelf-6.3.0 Rakefile
berkshelf-6.2.2 Rakefile
berkshelf-6.2.1 Rakefile
berkshelf-6.2.0 Rakefile
berkshelf-6.1.1 Rakefile
berkshelf-6.1.0 Rakefile