Sha256: f27cc181d213783eba7335f8eafd93eaf036bd0cf27e48ca5760c51c86323393
Contents?: true
Size: 927 Bytes
Versions: 3
Compression:
Stored size: 927 Bytes
Contents
require 'rake' require 'bundler/gem_tasks' desc 'Default: Run all specs.' task :default => 'all:spec' namespace :all do desc "Run specs on all versions" task :spec do success = true for_each_gemfile do |gemfile| rspec_binary = gemfile.include?('cucumber-1') ? 'spec' : 'rspec' success &= system("bundle exec #{rspec_binary} spec") end fail "Tests failed" unless success end desc "Bundle all versions" task :install do for_each_gemfile do |gemfile| system('bundle install') end end desc "Update all versions" task :update do for_each_gemfile do |gemfile| system('bundle update') end end end def for_each_gemfile version = ENV['VERSION'] || '*' Dir["gemfiles/Gemfile.#{version}"].sort.each do |gemfile| next if gemfile =~ /.lock/ puts '', "\033[44m#{gemfile}\033[0m", '' ENV['BUNDLE_GEMFILE'] = gemfile yield(gemfile) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumber_priority-0.1.2 | Rakefile |
cucumber_priority-0.1.1 | Rakefile |
cucumber_priority-0.1.0 | Rakefile |