Sha256: 7bc0f33d447ad98b65c9c9d8773a8c1b49f1288889692f52c0220791c6bf27e9

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

require 'rake'


require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'


TEST_APP_TEMPLATES = 'spec/test_app_templates'
TEST_APP = 'spec/internal'
require 'engine_cart/rake_task'

ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.0.0.zip"
APP_ROOT = File.dirname(__FILE__)

require 'jettywrapper'

task :default => :ci

desc "Run specs"
RSpec::Core::RakeTask.new do |t|

end

task :ci => ['jetty:clean', 'engine_cart:clean', 'engine_cart:generate'] do
  jetty_params = Jettywrapper.load_config('test')
  jetty_params[:startup_wait]= 60
  error = Jettywrapper.wrap(jetty_params) do
    Rake::Task["test:seed"].invoke
    Rake::Task['spec'].invoke
  end
  raise "test failures: #{error}" if error
end

namespace :test do

  desc "Put sample data into solr"
  task :seed => ['engine_cart:generate'] do
    within_test_app do
      ENV['RAILS_ENV'] ||= 'test'
      system "rake blacklight:solr:seed"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight_range_limit-5.0.2 Rakefile
blacklight_range_limit-5.0.1 Rakefile