Skip to content
Snippets Groups Projects
Select Git revision
  • 3cbf1d65a60797ef845e0265014244fef964a851
  • master default
  • fix-remote-url_v4.9.1
  • fix-remote-url_v4.8.3
  • fix-remote-url_v4.8.x
  • fix-remote-url_v4.7.x
  • fix-remote-url_v4.6.0
  • fix-remote-urls
8 results

question.php

Blame
  • Rakefile 745 B
    require 'rake'
    require 'rake/testtask'
    require 'bundler/setup'
    
    Rake::TestTask.new do |t|
      t.libs << 'lib'
      t.pattern = 'test/**/*_test.rb'
      t.verbose = false
    end
    
    desc 'Run Test Kitchen integration tests'
    namespace :integration do
      desc 'Run integration tests with kitchen-docker'
      task :docker do
        require 'kitchen'
        Kitchen.logger = Kitchen.default_file_logger
        @loader = Kitchen::Loader::YAML.new(local_config: '.kitchen.docker.yml')
        Kitchen::Config.new(loader: @loader).instances.each do |instance|
          instance.test(:always)
        end
      end
    end
    
    task default: :test
    
    begin
      require 'kitchen/rake_tasks'
      Kitchen::RakeTasks.new
    rescue LoadError
      puts '>>>>> Kitchen gem not loaded, omitting tasks' unless ENV['CI']
    end