-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
45 lines (36 loc) · 886 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
40
41
42
43
44
45
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'fcrepo_wrapper'
require 'solr_wrapper'
require 'active_fedora/rake_support'
Bundler::GemHelper.install_tasks
SolrWrapper.default_instance_options = {
verbose: true,
port: 8984,
version: '6.5.0',
instance_dir: 'solr/install'
}
desc 'Run style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
end
desc 'Run specs'
RSpec::Core::RakeTask.new(:spec)
namespace :tufts do
namespace :curation do
desc 'Run specs with Fedora & Solr servers'
task :spec do
with_test_server do
Rake::Task['spec'].invoke
end
end
end
end
desc 'Check style and run specs'
task ci: ['rubocop', 'tufts:curation:spec']
task default: :ci