-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
30 lines (22 loc) · 907 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
# frozen_string_literal: true
# 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', __dir__)
Rails.application.load_tasks
desc 'Execute the test build that runs in CI'
task ci: %i[rubocop environment] do
require 'solr_wrapper'
ENV['environment'] = 'test'
Rake::Task['db:migrate'].invoke
SolrWrapper.wrap do |solr|
solr.with_collection(name: 'blacklight-core', dir: "#{Rails.root}/config/solr_configs") do
Rake::Task['geoblacklight:index:seed'].invoke
Rake::Task['earthworks:spec:without-data-integration'].invoke
end
end
end
desc 'Execute the integration test build against production index'
task integration: [:environment] do
ENV['environment'] = 'test'
Rake::Task['earthworks:spec:data-integration'].invoke
end