Sha256: e78844f830bd16551cc00a1becf4e3f78a3a241d23511e1575461e1f83da059b
Contents?: true
Size: 1.15 KB
Versions: 145
Compression:
Stored size: 1.15 KB
Contents
#! /usr/bin/env ruby require 'autoproj' require 'autoproj/cmdline' root_dir = Autoproj::CmdLine.initialize_root_directory Autoproj::CmdLine.initialize_and_load([]) manifest = Autoproj.manifest manifest_path = File.join(Autoproj.config_dir, 'manifest') manifest_data = YAML.load(File.read(manifest_path)) manifest_data['layout'] = Array.new packages = manifest.each_package.map(&:name) while !packages.empty? pkg = packages[rand(packages.size)] next if !pkg packages.delete(pkg) manifest_data['layout'] << pkg File.open(manifest_path, 'w') do |io| io.write YAML.dump(manifest_data) end STDERR.puts STDERR.puts STDERR.puts STDERR.puts "==================================================" STDERR.puts "==== added #{pkg}" if !system('autoproj', 'full-build', '--randomize-layout', pkg) File.open(File.join(root_dir, 'failures.txt'), 'a') do |io| io.puts "the following layout failed:" io.puts " - " + manifest_data['layout'].join("\n - ") end STDERR.puts "the following layout failed:" STDERR.puts " - " + manifest_data['layout'].join("\n - ") end end
Version data entries
145 entries across 145 versions & 1 rubygems