Sha256: aa665e834cc63cbe78bed9710d79707d2aa5f294be25bbf67f34bdd0d40f1bde

Contents?: true

Size: 859 Bytes

Versions: 19

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.3.box',
    'ubuntu-virtualbox.box' => 'https://s3.amazonaws.com/puppetlabs-vagrantcloud/ubuntu-14.04-x86_64-virtualbox-nocm-1.0.3.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

19 entries across 19 versions & 1 rubygems

Version Path
vagrant-pe_build-0.17.12 tasks/acceptance.rake
vagrant-pe_build-0.17.11 tasks/acceptance.rake
vagrant-pe_build-0.17.10 tasks/acceptance.rake
vagrant-pe_build-0.17.9 tasks/acceptance.rake
vagrant-pe_build-0.17.8 tasks/acceptance.rake
vagrant-pe_build-0.17.7 tasks/acceptance.rake
vagrant-pe_build-0.17.6 tasks/acceptance.rake
vagrant-pe_build-0.17.5 tasks/acceptance.rake
vagrant-pe_build-0.17.4 tasks/acceptance.rake
vagrant-pe_build-0.17.3 tasks/acceptance.rake
vagrant-pe_build-0.17.2 tasks/acceptance.rake
vagrant-pe_build-0.17.1 tasks/acceptance.rake
vagrant-pe_build-0.17.0 tasks/acceptance.rake
vagrant-pe_build-0.16.0 tasks/acceptance.rake
vagrant-pe_build-0.15.6 tasks/acceptance.rake
vagrant-pe_build-0.15.5 tasks/acceptance.rake
vagrant-pe_build-0.15.4 tasks/acceptance.rake
vagrant-pe_build-0.15.3 tasks/acceptance.rake
vagrant-pe_build-0.15.1 tasks/acceptance.rake