Sha256: ca888636b4ed06c4af01b1c6883c732e586703f3212d202a95122785c236b282
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
require 'bundler/setup' Bundler::GemHelper.install_tasks require 'rdoc/task' require 'rubocop/rake_task' require 'rspec/core/rake_task' require 'engine_cart/rake_task' EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc task :default => :ci desc "Run specs" RSpec::Core::RakeTask.new(:spec) desc "Load fixtures" task :fixtures => ['engine_cart:generate'] do within_test_app do ENV['RAILS_ENV'] ||= 'test' system "rake blacklight:index:seed" abort "Error running fixtures" unless $?.success? end end desc "Execute Continuous Integration build" task :ci => ['rubocop', 'engine_cart:generate'] do require 'solr_wrapper' SolrWrapper.wrap(port: '8983') do |solr| solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path(File.dirname(__FILE__)), "solr", "conf")) do Rake::Task['fixtures'].invoke Rake::Task['spec'].invoke end end end desc 'Run style checker' RuboCop::RakeTask.new(:rubocop) do |task| task.requires << 'rubocop-rspec' task.fail_on_error = true end
Version data entries
5 entries across 5 versions & 1 rubygems