Sha256: 1163854875bde24e9761a197c0d6e477a515b06bea7345e69591c92d57723a71
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
require "bundler/gem_tasks" ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.4.zip" APP_ROOT = File.dirname(__FILE__) require 'rspec/core/rake_task' require 'engine_cart/rake_task' EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc require 'jettywrapper' task :default => :ci desc "Run specs" RSpec::Core::RakeTask.new do |t| end desc "Load fixtures" task :fixtures => ['engine_cart:generate'] do within_test_app do system "rake blacklight:index:seed RAILS_ENV=test" abort "Error running fixtures" unless $?.success? end end desc "Execute Continuous Integration build" task :ci => ['jetty:clean', 'engine_cart:generate'] do require 'jettywrapper' jetty_params = { :jetty_home => File.expand_path(File.dirname(__FILE__) + '/jetty'), :quiet => false, :jetty_port => 8888, :solr_home => File.expand_path(File.dirname(__FILE__) + '/jetty/solr'), :startup_wait => 30 } error = Jettywrapper.wrap(jetty_params) do Rake::Task['fixtures'].invoke Rake::Task['spec'].invoke end raise "test failures: #{error}" if error end task :server do unless File.exists? 'jetty' Rake::Task['jetty:clean'].invoke end jetty_params = Jettywrapper.load_config jetty_params[:startup_wait]= 60 Jettywrapper.wrap(jetty_params) do within_test_app do system "rake blacklight:index:seed" system "bundle exec rails s" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-gallery-0.5.0 | Rakefile |