runspecs in schema_associations-0.1.0.pre3 vs runspecs in schema_associations-0.1.0
- old
+ new
@@ -12,16 +12,25 @@
opts.on("--install", "Install gem dependencies") do |v|
options[:install] = v
end
end.parse!
-cmd = if options [:install]
- 'bundle update'
- else
- 'bundle update --local | grep rails \\n rake spec'
- end
+cmds = if options [:install]
+ ['bundle update']
+ else
+ ['bundle update --local rails | grep rails', 'rake spec']
+ end
+n = 1
+total = RUBY_VERSIONS.size * RAILS_VERSIONS.size
RUBY_VERSIONS.each do |ruby|
RAILS_VERSIONS.each do |rails|
- system "echo 'PS1="" SCHEMA_ASSOCIATION_RAILS_VERSION=#{rails} \\n rvm use #{ruby} \\n #{cmd} \\n exit' | bash -i" or abort "aborting #{$0}"
+ puts "\n\n*** ruby version #{ruby} - rails version #{rails} [#{n} of #{total}]\n\n"
+ n += 1
+ allcmds = []
+ allcmds << "rvm use #{ruby}"
+ allcmds << "export SCHEMA_VALIDATIONS_RAILS_VERSION=#{rails}"
+ allcmds += cmds
+ allcmds << 'exit'
+ system %Q{echo '#{allcmds.join(' \n ')}' | bash -i} or abort "aborting #{$0}"
end
end