Sha256: 5bf177081ad30eb7621b91e4c3facce6e8c94c35b0aa2d5b83cc9d780a3b8888

Contents?: true

Size: 919 Bytes

Versions: 4

Compression:

Stored size: 919 Bytes

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

Bundler::GemHelper.install_tasks

require 'rubocop/rake_task'
require 'solr_wrapper'
require 'solr_wrapper/rake_task'
require 'engine_cart/rake_task'

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task default: 'ci'

def solr_config_dir
  File.join(__dir__, 'solr_conf', 'conf')
end

namespace :solr do
  desc 'Run test suite (with solr wrapper)'
  task :spec do
    SolrWrapper.wrap do |solr|
      solr.with_collection(name: 'blacklight-core', dir: solr_config_dir) do # |collection_name|
        Rake::Task['spec'].invoke
      end
    end
  end
end

desc 'Run CI build'
task ci: ['rubocop', 'engine_cart:generate', 'solr:spec']

desc 'Run style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
  task.requires << 'rubocop-rspec'
  task.fail_on_error = true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-access_controls-6.0.1 Rakefile
blacklight-access_controls-6.0.0 Rakefile
blacklight-access_controls-0.7.0 Rakefile
blacklight-access_controls-0.7.0.rc1 Rakefile