Sha256: 5ff0aa7023bc9f99c10432a0afff24b46bbdbf0e33d84f50a3be44e40ab9c3ee

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require "bundler/gem_tasks"
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.3.zip"

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

EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc

RSpec::Core::RakeTask.new(:spec)

task :default => [:ci]

task :ci => ['blacklight_marc:clean', 'blacklight_marc:generate'] do
  jetty_params = Jettywrapper.load_config('test')
  error = Jettywrapper.wrap(jetty_params) do
    Rake::Task["blacklight_marc:fixtures"].invoke
    Rake::Task['spec'].invoke
  end
  raise "test failures: #{error}" if error
end


namespace :blacklight_marc do

  desc "Load fixtures"
  task :fixtures => [:generate] do
    within_test_app do
      system "rake solr:marc:index_test_data RAILS_ENV=test"
      abort "Error running fixtures" unless $?.success?
    end
  end

  desc "Clean out the test rails app"
  task :clean => ['jetty:clean'] do
  end

  desc "Create the test rails app"
  task :generate => ['engine_cart:generate'] do
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-marc-5.10.0 Rakefile