Skip to content

Commit

Permalink
Use solr_wrapper config file for collection configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed May 30, 2018
1 parent ef6510b commit 7476303
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/blacklight.rake
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)

EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
SOLR_CONFIG_DIR = File.join(File.expand_path("..", __dir__), '.internal_test_app', 'solr', 'conf').freeze

desc "Run test suite"
task ci: ['blacklight:generate'] do
SolrWrapper.wrap do |solr|
solr.with_collection(name: 'blacklight-core', dir: SOLR_CONFIG_DIR) do
solr.with_collection do
within_test_app do
system "RAILS_ENV=test rake blacklight:index:seed"
end
Expand Down Expand Up @@ -54,7 +53,7 @@ namespace :blacklight do
end

SolrWrapper.wrap do |solr|
solr.with_collection(name: 'blacklight-core', dir: SOLR_CONFIG_DIR) do
solr.with_collection do
Rake::Task['blacklight:internal:seed'].invoke

within_test_app do
Expand Down

0 comments on commit 7476303

Please sign in to comment.