Sha256: 742cf12e2d45e1b28f6c39e80b1f824096c36f9960d0c6125fd30e7555958e57

Contents?: true

Size: 862 Bytes

Versions: 1

Compression:

Stored size: 862 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec).tap{|task| task.pattern = "spec/*_spec.rb, spec/*/*_spec.rb"}

task :default => :spec


namespace :dev do
  desc "Setup extra things required to run the spec suite"
  task :install do
    commands = []

    if RUBY_VERSION >= '2.2.2' && (!defined?(RUBY_ENGINE) || RUBY_ENGINE != 'jruby')
      commands << 'bundle install --gemfile=spec/full_usage/rails51_project/Gemfile'
    end
    commands << 'bundle install --gemfile=spec/cli_fixtures/simple_rails42_app/Gemfile'

    commands.each do |command|
      puts "Running: #{command}"
      unless system(command)
        puts "Failed to run `#{command}`, see above for details. When it is fixed, try running this rake task again."
        exit(1)
      end
      puts "Command succeeded: #{command}"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deep-cover-0.1.14 Rakefile