Sha256: 46c028e029214432f281e0c990223854a3231a2593ff0437b65649ae57e72bb2
Contents?: true
Size: 862 Bytes
Versions: 3
Compression:
Stored size: 862 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task default: :spec namespace :test do desc "Locally run tests like Travis and HoundCI would" task :all_versions do system(*%w(bundle update --quiet)) || abort system(*%w(bundle exec rubocop -c .hound.yml)) || abort gemfiles = Dir["gemfiles/Gemfile.rspec-*"] actual_gemfiles = gemfiles.select { |f| /\d\.\d{1,2}$/ =~ f } actual_gemfiles.each do |gemfile| STDOUT.puts STDOUT.puts "----------------------------------------------------- " STDOUT.puts " >> Running tests using Gemfile: #{gemfile} <<" STDOUT.puts "----------------------------------------------------- " ENV["BUNDLE_GEMFILE"] = gemfile system(*%w(bundle update --quiet)) || abort system(*%w(bundle exec rspec)) || abort end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
guard-rspec-4.5.0 | Rakefile |
guard-rspec-4.4.2 | Rakefile |
guard-rspec-4.4.1 | Rakefile |