Sha256: db530fa168ed149cc0ae00d5014d8dc90da1c5f5c683fc7f1972d0edc1380e1f

Contents?: true

Size: 799 Bytes

Versions: 2

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

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

Bundler::GemHelper.install_tasks

require 'solr_wrapper'

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

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)

require 'solr_wrapper/rake_task'
require 'engine_cart/rake_task'
require 'geoblacklight_sidecar_images/version'

task ci: ['engine_cart:generate'] do
  ENV['environment'] = 'test'
  SolrWrapper.wrap do |solr|
    solr.with_collection(name: 'blacklight-core', dir: File.join(__dir__, 'solr', 'conf')) do
      # run the tests
      Rake::Task['spec'].invoke
    end
  end
end

task default: %i[rubocop ci]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight_sidecar_images-0.8.1 Rakefile
geoblacklight_sidecar_images-0.8.0 Rakefile