Sha256: 2af56cb13dd630ea8282378e4e48a247f27da40c49ce2a4e3cda09a912c3d854
Contents?: true
Size: 733 Bytes
Versions: 15
Compression:
Stored size: 733 Bytes
Contents
namespace :acceptance do ARTIFACT_DIR = File.join('acceptance', 'artifacts') TEST_BOXES = %w[ https://vagrantcloud.com/puppetlabs/centos-6.5-64-nocm/version/2/provider/virtualbox.box ] directory ARTIFACT_DIR TEST_BOXES.each do |box_url| file File.join(ARTIFACT_DIR, File.basename(box_url)) => 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_url| File.join(ARTIFACT_DIR, File.basename(box_url))} desc 'runs acceptance tests' task :run => :setup do command = 'vagrant-spec test' puts command puts exec(command) end end
Version data entries
15 entries across 15 versions & 2 rubygems