Sha256: 474357823250e01d8b250b5a469afbf815a6af7161fdff3f88b71466cd31557c

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

SUPPORTED_RUBIES = %w[ree 1.9.2 1.9.3 jruby rbx]
GEMSPEC = Bundler::GemHelper.new(Dir.pwd).gemspec

def with_ruby(ruby, command)
  gemset  = GEMSPEC.name
  command = %{rvm #{ruby}@#{gemset} --create do bash -c '#{command}'}

  puts "\n" * 3
  puts "CMD: #{command}"
  puts "=" * 40

  system command
end

namespace :rubies do
  desc "Run tests for following supported platforms #{SUPPORTED_RUBIES.join ", "}"
  task :test do
    command = "(bundle check || bundle install) && bundle exec rake"
    SUPPORTED_RUBIES.each { |ruby| with_ruby(ruby, command) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libnotify-0.8.0 lib/libnotify/tasks/rubies.rake
libnotify-0.8.0.pre lib/libnotify/tasks/rubies.rake
libnotify-0.7.4 lib/libnotify/tasks/rubies.rake
libnotify-0.7.4.pre lib/libnotify/tasks/rubies.rake