Sha256: 3251dd4a3d4a6ef494f2e0380d03032361768fcd70e7b35468802fe45d6f5ff1

Contents?: true

Size: 570 Bytes

Versions: 9

Compression:

Stored size: 570 Bytes

Contents

SUPPORTED_RUBIES = %w[ree 1.9.3 2.0.0 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 = "rm -f Gemfile.lock && bundle install && bundle exec rake"
    SUPPORTED_RUBIES.each { |ruby| with_ruby(ruby, command) }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
libnotify-0.9.4 lib/libnotify/tasks/rubies.rake
libnotify-0.9.3 lib/libnotify/tasks/rubies.rake
libnotify-0.9.2 lib/libnotify/tasks/rubies.rake
libnotify-0.9.1 lib/libnotify/tasks/rubies.rake
libnotify-0.9.0 lib/libnotify/tasks/rubies.rake
libnotify-0.8.4 lib/libnotify/tasks/rubies.rake
libnotify-0.8.3 lib/libnotify/tasks/rubies.rake
libnotify-0.8.2 lib/libnotify/tasks/rubies.rake
libnotify-0.8.1 lib/libnotify/tasks/rubies.rake