Sha256: 4aa96df651fd8c13ede5e327c37e1acabec1413fc500d44a0f8ae4e25da8ea77
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
require 'gemika/env' require 'gemika/matrix' require 'gemika/rspec' ## # Rake tasks to run commands for each compatible row in the test matrix. # namespace :matrix do desc "Run specs for all Ruby #{RUBY_VERSION} gemfiles" task :spec, :files do |t, options| Gemika::Matrix.from_travis_yml.each do |row| options = options.to_hash.merge( :gemfile => row.gemfile, :fatal => false, :bundle_exec => true ) Gemika::RSpec.run_specs(options) end end desc "Install all Ruby #{RUBY_VERSION} gemfiles" task :install do Gemika::Matrix.from_travis_yml.each do |row| system('bundle install') end end desc "List dependencies for all Ruby #{RUBY_VERSION} gemfiles" task :list do Gemika::Matrix.from_travis_yml.each do |row| system('bundle list') end end desc "Update all Ruby #{RUBY_VERSION} gemfiles" task :update, :gems do |t, options| Gemika::Matrix.from_travis_yml.each do |row| system("bundle update #{options[:gems]}") end end end
Version data entries
5 entries across 5 versions & 1 rubygems