Sha256: 428206d9016412c7e98373b4df6020894a109e0f1b4974ddfd81f0c534f95fd4

Contents?: true

Size: 1.16 KB

Versions: 50

Compression:

Stored size: 1.16 KB

Contents

require "bundler/gem_tasks"

APP_ROOT = File.dirname(__FILE__)

require 'rspec/core/rake_task'
require 'engine_cart/rake_task'

task :default => :ci

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

end

desc "Load fixtures"
task :fixtures => ['engine_cart:generate'] do
  within_test_app do
      system "rake blacklight:index:seed RAILS_ENV=test"
      abort "Error running fixtures" unless $?.success?
  end
end

desc "Execute Continuous Integration build"
task :ci => ['engine_cart:generate'] do

  require 'solr_wrapper'
  SolrWrapper.wrap(port: '8983') do |solr|
    solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path(File.dirname(__FILE__)), 'solr', 'conf')) do
      Rake::Task['fixtures'].invoke
      Rake::Task['spec'].invoke
    end
  end
end


desc "Run Solr and Blacklight for interactive development"
task :server do
  require 'solr_wrapper'
  SolrWrapper.wrap(port: '8983') do |solr|
    solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path(File.dirname(__FILE__)), 'solr', 'conf')) do
      within_test_app do
        system "rake blacklight:index:seed"
        system "bundle exec rails s"
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
blacklight-gallery-4.8.4 Rakefile
blacklight-gallery-4.8.3 Rakefile
blacklight-gallery-4.8.2 Rakefile
blacklight-gallery-4.8.1 Rakefile
blacklight-gallery-4.8.0 Rakefile
blacklight-gallery-4.7.0 Rakefile
blacklight-gallery-4.6.4 Rakefile
blacklight-gallery-4.6.3 Rakefile
blacklight-gallery-4.6.2 Rakefile
blacklight-gallery-4.6.1 Rakefile
blacklight-gallery-4.6.0 Rakefile
blacklight-gallery-4.5.4 Rakefile
blacklight-gallery-4.5.3 Rakefile
blacklight-gallery-4.5.2 Rakefile
blacklight-gallery-4.5.1 Rakefile
blacklight-gallery-4.5.0 Rakefile
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-gallery-4.4.1/Rakefile
blacklight-gallery-4.4.1 Rakefile
blacklight-gallery-4.4.0 Rakefile
blacklight-gallery-4.3.0 Rakefile