Sha256: 80faf048ce63120346be45f209d2297ccc556dc77e4e9ac12b5f9cb7d520ec90

Contents?: true

Size: 1.03 KB

Versions: 18

Compression:

Stored size: 1.03 KB

Contents

begin
  require 'rspec/core/rake_task'
  require 'coveralls/rake/task'

  desc 'Run all specs'
  task :spec => ['spec:set_coverage', 'spec:unit', 'spec:acceptance']

  desc 'Default task which runs all specs with code coverage enabled'
  task :default => ['spec:set_coverage', 'spec:unit']

  Coveralls::RakeTask.new
  task :ci => ['spec:set_coverage', 'spec:unit', 'coveralls:push']
rescue LoadError; end

namespace :spec do
  task :set_coverage do
    ENV['COVERAGE'] = 'true'
  end

  desc 'Run acceptance specs using vagrant-spec'
  task :acceptance do
    components = %w(
      basic
      network/forwarded_port
      synced_folder
      synced_folder/nfs
      synced_folder/rsync
      provisioner/shell
      provisioner/puppet
      provisioner/chef-solo
      package
    ).map{|s| "provider/lxc/#{s}" }
    sh "export ACCEPTANCE=true && bundle exec vagrant-spec test --components=#{components.join(' ')}"
  end

  desc "Run unit specs with rspec"
  RSpec::Core::RakeTask.new(:unit) do |t|
    t.pattern = "./unit/**/*_spec.rb"
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
vagrant-lxc-1.4.3 tasks/spec.rake
vagrant-lxc-1.4.2 tasks/spec.rake
vagrant-lxc-1.4.1 tasks/spec.rake
vagrant-lxc-2.1-patch-1.4.0 tasks/spec.rake
vagrant-lxc-1.4.0 tasks/spec.rake
vagrant-lxc-1.3.1 tasks/spec.rake
vagrant-lxc-1.3.0 tasks/spec.rake
vagrant-lxc-1.2.4 tasks/spec.rake
vagrant-lxc-1.2.3 tasks/spec.rake
vagrant-lxc-1.2.2 tasks/spec.rake
vagrant-lxc-1.2.1 tasks/spec.rake
vagrant-lxc-1.2.0 tasks/spec.rake
vagrant-lxc-1.1.0 tasks/spec.rake
vagrant-lxc-1.0.1 tasks/spec.rake
vagrant-lxc-1.0.0 tasks/spec.rake
vagrant-lxc-1.0.0.alpha.3 tasks/spec.rake
vagrant-lxc-1.0.0.alpha.2 tasks/spec.rake
vagrant-lxc-1.0.0.alpha.1 tasks/spec.rake