Sha256: d299944f88497407b0d677d3d6238f7de4cb6abf36948fbaad90a8155a3583f6

Contents?: true

Size: 1.38 KB

Versions: 17

Compression:

Stored size: 1.38 KB

Contents

require "bundler/gem_tasks"

require "rake/testtask"
Rake::TestTask.new(:unit) do |t|
  t.libs.push "lib"
  t.test_files = FileList["spec/**/*_spec.rb"]
  t.verbose = true
end

begin
  require "cucumber"
  require "cucumber/rake/task"
  Cucumber::Rake::Task.new(:features) do |t|
    t.cucumber_opts = ["features", "-x", "--format progress", "--no-color", "--tags 'not @ignore'"]
  end
rescue LoadError
  puts "cucumber is not available. (sudo) gem install cucumber to run tests."
end

desc "Run all test suites"
task test: %i{unit features}

desc "Display LOC stats"
task :stats do
  puts "\n## Production Code Stats"
  sh "countloc -r lib/kitchen lib/kitchen.rb"
  puts "\n## Test Code Stats"
  sh "countloc -r spec features"
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 is not available. (sudo) gem install chefstyle to do style checking."
end

desc "Run all quality tasks"
task quality: %i{style stats}

task default: %i{test quality}

namespace :docs do
  desc "Deploy docs"
  task :deploy do
    sh "cd docs && hugo"
    sh "aws --profile chef-cd s3 sync docs/public s3://test-kitchen-legacy.cd.chef.co --delete --acl public-read"
    sh "aws --profile chef-cd cloudfront create-invalidation --distribution-id EQD8MRW086SRT --paths '/*'"
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
test-kitchen-3.7.0 Rakefile
test-kitchen-3.6.0 Rakefile
test-kitchen-3.5.1 Rakefile
test-kitchen-3.5.0 Rakefile
test-kitchen-3.4.0 Rakefile
test-kitchen-3.3.2 Rakefile
test-kitchen-3.3.1 Rakefile
test-kitchen-3.3.0 Rakefile
test-kitchen-3.2.2 Rakefile
test-kitchen-3.2.1 Rakefile
test-kitchen-3.2.0 Rakefile
test-kitchen-3.1.1 Rakefile
test-kitchen-3.1.0 Rakefile
test-kitchen-rsync-3.0.0.pre.3 Rakefile
test-kitchen-rsync-3.0.0.pre.2 Rakefile
test-kitchen-rsync-3.0.0.pre.1 Rakefile
test-kitchen-3.0.0 Rakefile