Sha256: 502a8e54de6f53dcfba73a9fb70b7ed6522574765381fe200e647c06ce5ac97e

Contents?: true

Size: 1.05 KB

Versions: 146

Compression:

Stored size: 1.05 KB

Contents

# -*- encoding: utf-8 -*-
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec

namespace(:spec) do
  desc "Run all specs on multiple ruby versions"
  task(:portability) do
    versions = %w[2.4.1 rbx-3.72 jruby-1.7.26 jruby-9.1.8.0]
    versions.each do |version|
      # system <<-BASH
      #   bash -c 'source ~/.rvm/scripts/rvm;
      #            rvm #{version};
      #            echo "--------- version #{version} ----------\n";
      #            bundle install;
      #            rake spec'
      # BASH
      system <<-BASH
        bash -c 'export PATH="$HOME/.rbenv/bin:$PATH";
                 [[ `which rbenv` ]] && eval "$(rbenv init -)";
                 [[ ! -a $HOME/.rbenv/versions/#{version} ]] && rbenv install #{version};
                 rbenv shell #{version};
                 rbenv which bundle 2> /dev/null || gem install bundler;
                 rm Gemfile.lock;
                 bundle install;
                 rake spec;'
      BASH
    end
  end
end

Version data entries

146 entries across 139 versions & 13 rubygems

Version Path
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/rb-fsevent-0.11.2/Rakefile