Sha256: 9ae7fc5fb23e86c59ce29dd408f10db1429451edaa6601b3b2ff311abd69b9d1

Contents?: true

Size: 1.12 KB

Versions: 14

Compression:

Stored size: 1.12 KB

Contents

require "nenv"
require "bundler/gem_tasks"
require "yaml"

default_tasks = []

require "rspec/core/rake_task"
default_tasks << RSpec::Core::RakeTask.new(:spec) do |t|
  t.verbose = Nenv.ci?
end

unless Nenv.ci?
  require "rubocop/rake_task"
  default_tasks << RuboCop::RakeTask.new(:rubocop)
end

task default: default_tasks.map(&:name)

namespace :test do
  desc "Locally run tests like Travis and HoundCI would"
  task :all_versions do
    system(*%w(bundle install --quiet)) || abort
    system(*%w(bundle update --quiet)) || abort
    system(*%w(bundle exec rubocop -c .hound.yml)) || abort

    travis = YAML.load(IO.read(".travis.yml"))
    travis["gemfile"].each do |gemfile|
      STDOUT.puts
      STDOUT.puts "----------------------------------------------------- "
      STDOUT.puts " >> Running tests using Gemfile: #{gemfile} <<"
      STDOUT.puts "----------------------------------------------------- "
      env = { "BUNDLE_GEMFILE" => gemfile }
      system(env, *%w(bundle install --quiet)) || abort
      system(env, *%w(bundle update --quiet)) || abort
      system(env, *%w(bundle exec rspec)) || abort
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
guard-rspec-4.7.0 Rakefile
guard-rspec-4.6.5 Rakefile
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/guard-rspec-4.6.4/Rakefile
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/guard-rspec-4.6.4/Rakefile
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/guard-rspec-4.6.4/Rakefile
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/guard-rspec-4.6.4/Rakefile
geminfo-0.1.0 path/gems/guard-rspec-4.6.4/Rakefile
guard-rspec-4.6.4 Rakefile
guard-rspec-4.6.3 Rakefile
guard-rspec-4.6.2 Rakefile
guard-rspec-4.6.1 Rakefile
guard-rspec-4.6.0 Rakefile
guard-rspec-4.5.2 Rakefile
guard-rspec-4.5.1 Rakefile