Sha256: 7eb75afcd87eee844398da98b16c1a1fdb1e4f1e670dc224a06a1c4d93913379
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
image = 'muratayusuke/itamae-plugin-recipe-phantomjs' puts 'Build docker image:' puts `docker build -t #{image} .` puts 'Provision docker image:' output = [] IO.popen("bundle exec itamae docker spec/recipe.rb --image=#{image} -l debug").each do |line| puts line output << line.chomp end last_line = output.last ENV['DOCKER_IMAGE_PHANTOMJS'] = last_line.scan(/Image created: (.*)\n/).first.first p "provisioned image: #{ENV['DOCKER_IMAGE_PHANTOMJS']}" puts 'Run rspec test:' puts `bundle exec rspec`
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itamae-plugin-recipe-phantomjs-0.0.1 | run_test.rb |