Sha256: f4f54b5e48ed148b8cb54951ec37b15c57886d66463242ccdf730fa590490972

Contents?: true

Size: 859 Bytes

Versions: 12

Compression:

Stored size: 859 Bytes

Contents

namespace :acceptance do
  ARTIFACT_DIR = File.join('acceptance', 'artifacts')
  TEST_BOXES = {
    'centos-virtualbox.box' => 'https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-6.6-x86_64-virtualbox-nocm-1.0.2.box',
    'ubuntu-virtualbox.box' => 'https://s3.amazonaws.com/puppetlabs-vagrantcloud/ubuntu-14.04-x86_64-virtualbox-nocm-1.0.2.box'
  }

  directory ARTIFACT_DIR
  TEST_BOXES.each do |box, box_url|
    file File.join(ARTIFACT_DIR, box) => ARTIFACT_DIR do |path|
      puts 'Downloading: ' + box_url
      Kernel.system 'curl', '-L', '-o', path.to_s, box_url
    end
  end

  desc 'downloads test boxes and other artifacts'
  task :setup => TEST_BOXES.map {|box, _| File.join(ARTIFACT_DIR, box)}

  desc 'runs acceptance tests'
  task :run => :setup do
    command = 'vagrant-spec test'
    puts command
    puts
    exec(command)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vagrant-pe_build-0.15.0 tasks/acceptance.rake
vagrant-pe_build-0.14.2 tasks/acceptance.rake
vagrant-pe_build-0.14.1 tasks/acceptance.rake
vagrant-pe_build-0.14.0 tasks/acceptance.rake
vagrant-pe_build-0.13.7 tasks/acceptance.rake
vagrant-pe_build-0.13.6 tasks/acceptance.rake
vagrant-pe_build-0.13.5 tasks/acceptance.rake
vagrant-pe_build-0.13.4 tasks/acceptance.rake
vagrant-pe_build-0.13.3 tasks/acceptance.rake
vagrant-pe_build-0.13.2 tasks/acceptance.rake
vagrant-pe_build-0.13.1 tasks/acceptance.rake
vagrant-pe_build-0.13.0 tasks/acceptance.rake