Sha256: c73ebc4b54ae201672d5ad7d5b153cb7cb8389ecce649128efcf7e87393efd7a

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

[:unit, :functional].each do |type|
  RSpec::Core::RakeTask.new(type) do |t|
    t.pattern = "spec/#{type}/**/*_spec.rb"
    t.rspec_opts = [].tap do |a|
      a.push("--color")
      a.push("--format progress")
    end.join(" ")
  end
end

require "chefstyle"
require "rubocop/rake_task"
RuboCop::RakeTask.new(:chefstyle) do |task|
  task.options << "--display-cop-names"
end

namespace :travis do
  desc "Run tests on Travis CI"
  task ci: %w{chefstyle unit functional}
end

desc "Render product matrix documentation"
task "matrix" do
  require "mixlib/install/product"

  doc_file = File.join(File.dirname(__FILE__), "PRODUCT_MATRIX.md")
  puts "Updating doc file at: #{doc_file}"

  File.open(doc_file, "w+") do |f|
    f.puts("| Product | Product Key  |")
    f.puts("| ------- | ------------ |")
    PRODUCT_MATRIX.products.sort.each do |p_key|
      product = PRODUCT_MATRIX.lookup(p_key)
      f.puts("| #{product.product_name} | #{p_key} |")
    end
    f.puts("")
    f.puts("Do not modify this file manually. It is automatically rendered via a rake task.")
  end
end

task :console do
  require "irb"
  require "irb/completion"
  require "mixlib/install"
  ARGV.clear
  IRB.start
end

task default: %w{travis:ci}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mixlib-install-3.3.0 Rakefile
mixlib-install-3.2.2 Rakefile
mixlib-install-3.2.1 Rakefile
mixlib-install-3.2.0 Rakefile
mixlib-install-3.1.0 Rakefile
mixlib-install-3.0.0 Rakefile
mixlib-install-2.1.12 Rakefile
mixlib-install-2.1.11 Rakefile
mixlib-install-2.1.10 Rakefile
mixlib-install-2.1.9 Rakefile
mixlib-install-2.1.8 Rakefile
mixlib-install-2.1.7 Rakefile
mixlib-install-2.1.6 Rakefile