-
Notifications
You must be signed in to change notification settings - Fork 27
/
Rakefile
39 lines (31 loc) · 911 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
33
34
35
36
37
38
39
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'engine_cart/rake_task'
require 'rubocop/rake_task'
require 'solr_wrapper'
require 'fcrepo_wrapper'
require 'active_fedora/rake_support'
Dir.glob('tasks/*.rake').each { |r| import r }
Bundler::GemHelper.install_tasks
namespace :curation_concerns do
desc 'Run style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
task.requires << 'rubocop-rspec'
task.fail_on_error = true
end
RSpec::Core::RakeTask.new(:rspec)
desc 'Run test suite'
task :spec do
with_test_server do
Rake::Task['curation_concerns:rspec'].invoke
end
end
end
desc 'Run test suite and style checker'
task spec: ['curation_concerns:spec']
desc 'Spin up Solr & Fedora and run the test suite'
task ci: ['curation_concerns:rubocop', 'engine_cart:generate'] do
Rake::Task['spec'].invoke
end
task clean: 'engine_cart:clean'
task default: :ci