Sha256: dc990a505e6a72bdaebfb231df503b8cc38c7473a8f6b162c8e4ecc045cc09a8

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'cucumber/rake/task'
require 'yard'

YARD::Rake::YardocTask.new

namespace :test do

  RSpec::Core::RakeTask.new(:unit) do |t|
    t.pattern = 'spec/unit/**/*_spec.rb'
  end

end

namespace :style do
  require 'rubocop/rake_task'
  desc 'Run Ruby style checks'
  Rubocop::RakeTask.new(:ruby) do |task|
    task.patterns = [
      '**/*.rb',
      '**/Vagrantfile',
      '*.gemspec',
      'Gemfile',
      'Rakefile'
    ]
  end
end

namespace :features do
  desc 'Downloads and adds vagrant box for testing.'
  task(:bootstrap) do
    if `bundle exec vagrant box list`.include?('precise64.box')
      puts 'precise64 box found! No bootstrap needed.'
    else
      system('bundle exec vagrant box add precise64 http://files.vagrantup.com/precise64.box')
    end
  end

  Cucumber::Rake::Task.new(:run) do |t|
    t.cucumber_opts = %w(--format pretty --order random)
  end
end

task default: [
  'test:unit',
  'style:ruby'
]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-adam-0.5.0a Rakefile
vagrant-adam-0.4.0a Rakefile
vagrant-adam-0.3.0a Rakefile
vagrant-adam-0.2.0a Rakefile
vagrant-adam-0.1.0a Rakefile