-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
32 lines (23 loc) · 844 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.6.0.zip"
require 'jettywrapper'
task ci: ['jetty:clean', :configure_jetty] do
ENV['environment'] = "test"
jetty_params = Jettywrapper.load_config
jetty_params[:startup_wait]= 60
Jettywrapper.wrap(jetty_params) do
# run the tests
Rake::Task["spec"].invoke
end
end
task :configure_jetty do
FileList['solr_conf/conf/*'].each do |f|
cp("#{f}", 'jetty/solr/blacklight-core/conf/', :verbose => true)
end
end
task default: :ci