Sha256: 75d67d996c5d84b139a15cf2cb394178e0d1d0ca0ed25124b744a30b15e587bb
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require "bundler/gem_tasks" require "finstyle" require "rubocop/rake_task" require "rspec/core/rake_task" task default: :test desc "Run specs" RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = "spec/**/*_spec.rb" end desc "Run rubocop" RuboCop::RakeTask.new do |task| task.options << "--display-cop-names" end desc "Run all tests" task test: [:rubocop, :spec] desc "Run unstable channel tests" task "unstable" do Rake::Task["rubocop"].invoke system("bundle exec rspec -t unstable") 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mixlib-install-0.8.0.alpha.6 | Rakefile |
mixlib-install-0.8.0.alpha.5 | Rakefile |
mixlib-install-0.8.0.alpha.4 | Rakefile |