Sha256: 4f11c47a487e0b9af67bf1f6f08aad84d1842101d560ff2432400d5afed84ea5

Contents?: true

Size: 1.29 KB

Versions: 8

Compression:

Stored size: 1.29 KB

Contents

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

BLACKLIGHT_JETTY_VERSION = '4.10.0'
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v#{BLACKLIGHT_JETTY_VERSION}.zip"
APP_ROOT = File.dirname(__FILE__)

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

task default: :ci

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

desc "Load fixtures"
task :fixtures => ['engine_cart:generate'] do
  EngineCart.within_test_app do
    system "rake geoblacklight:solr:seed RAILS_ENV=test"
    system 'rake geoblacklight:downloads:mkdir'
  end
end

desc "Execute Continuous Integration build"
task :ci => ['engine_cart:generate', 'jetty:clean', 'geoblacklight:configure_jetty'] do
  ENV['environment'] = "test"
  jetty_params = Jettywrapper.load_config
  jetty_params[:startup_wait]= 60

  Jettywrapper.wrap(jetty_params) do
    Rake::Task["fixtures"].invoke

    # run the tests
    Rake::Task["spec"].invoke
  end
end


namespace :geoblacklight do
  desc "Copies the default SOLR config for the bundled Testing Server"
  task :configure_jetty do
    FileList['schema/conf/*'].each do |f|
      cp("#{f}", 'jetty/solr/blacklight-core/conf/', :verbose => true)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight-0.3.4 Rakefile
geoblacklight-0.3.3 Rakefile
geoblacklight-0.3.2 Rakefile
geoblacklight-0.3.1 Rakefile
geoblacklight-0.3.0 Rakefile
geoblacklight-0.2.2 Rakefile
geoblacklight-0.2.1 Rakefile
geoblacklight-0.2.0 Rakefile