-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (29 loc) · 1.1 KB
/
Rakefile
File metadata and controls
33 lines (29 loc) · 1.1 KB
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
33
# 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
ZIP_URL = 'https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.0.zip'
require 'jettywrapper'
desc 'Execute the test build that runs on travis'
task :ci => [:environment] do
if Rails.env.test?
Rake::Task['db:migrate'].invoke
Rake::Task['earthworks:download_and_unzip_jetty'].invoke
Rake::Task['earthworks:copy_solr_configs'].invoke
jetty_params = Jettywrapper.load_config
Jettywrapper.wrap(jetty_params) do
Rake::Task['geoblacklight:solr:seed'].invoke
Rake::Task['earthworks:spec:without-data-integration'].invoke
end
else
system('rake ci RAILS_ENV=test')
end
end
desc 'Execute the integration test build against production index'
task :integration => [:environment] do
if Rails.env.test?
Rake::Task['earthworks:spec:data-integration'].invoke
else
system('rake integration RAILS_ENV=test')
end
end