Sha256: 4541acce3aa4f5eace65c159de069e5e77c30ffe2189980f3147ed8facbb14fd
Contents?: true
Size: 723 Bytes
Versions: 5
Compression:
Stored size: 723 Bytes
Contents
namespace :acceptance do ARTIFACT_DIR = File.join('acceptance', 'artifacts') TEST_BOXES = { 'virtualbox.box' => 'https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-6.6-x86_64-virtualbox-nocm-1.0.1.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
5 entries across 5 versions & 1 rubygems