Sha256: c79d61a20ef4b9f61b9b7bf6d21f971a8005a69ca194f331b1b761833fec68ab
Contents?: true
Size: 1.82 KB
Versions: 6
Compression:
Stored size: 1.82 KB
Contents
require 'solr_wrapper' require 'fcrepo_wrapper' task ci: ['engine_cart:generate'] do # TODO: set port to nil (random port) solr_params = { port: '8985', verbose: true, managed: true } fcrepo_params = { port: '8986', verbose: true, managed: true } SolrWrapper.wrap(solr_params) do |solr| ENV['SOLR_TEST_PORT'] = solr.port solr.with_collection(name: 'hydra-test', dir: File.join(File.expand_path('.', File.dirname(__FILE__)), '..', 'solr', 'config')) do FcrepoWrapper.wrap(fcrepo_params) do |fcrepo| ENV['FCREPO_TEST_PORT'] = fcrepo.port Rake::Task['spec'].invoke end end end end namespace :geo_concerns do desc "Run development servers for Geo Concerns" task :dev_servers do solr_params = { port: '8983', verbose: true, managed: true } fcrepo_params = { port: '8984', verbose: true, managed: true } SolrWrapper.wrap(solr_params) do |solr| ENV['SOLR_TEST_PORT'] = solr.port solr.with_collection(name: 'hydra-development', dir: File.join(File.expand_path('.', File.dirname(__FILE__)), '..', 'solr', 'config')) do FcrepoWrapper.wrap(fcrepo_params) do |fcrepo| ENV['FCREPO_TEST_PORT'] = fcrepo.port while true do end end end end end desc "Run test servers for Geo Concerns" task :test_servers do solr_params = { port: '8985', verbose: true, managed: true } fcrepo_params = { port: '8986', verbose: true, managed: true } SolrWrapper.wrap(solr_params) do |solr| ENV['SOLR_TEST_PORT'] = solr.port solr.with_collection(name: 'hydra-test', dir: File.join(File.expand_path('.', File.dirname(__FILE__)), '..', 'solr', 'config')) do FcrepoWrapper.wrap(fcrepo_params) do |fcrepo| ENV['FCREPO_TEST_PORT'] = fcrepo.port while true do end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems