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
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/rb-fsevent-0.11.0/Rakefile
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/rb-fsevent-0.11.0/Rakefile
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
rb-fsevent-0.11.0 Rakefile
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.35 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.34 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.33 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.32 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.31 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.30 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.29 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.28 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.27 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.26 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
qiita_org-0.1.25 gems/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/rb-fsevent-0.10.3/Rakefile
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/rb-fsevent-0.10.4/Rakefile