-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
36 lines (28 loc) · 942 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
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'engine_cart/rake_task'
require 'rubocop/rake_task'
Bundler::GemHelper.install_tasks
desc 'Run style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
# @todo - make true when we have full coverage
task.fail_on_error = false
end
RSpec::Core::RakeTask.new(:spec)
desc 'Spin up test servers and run specs'
task :spec_with_app_load do
require 'solr_wrapper' # necessary for rake_support to work
require 'fcrepo_wrapper' # necessary for rake_support to work
require 'active_fedora/rake_support'
with_test_server do
Rake::Task['spec'].invoke
end
end
desc 'Generate the engine_cart, spin up test servers and run specs'
task ci: ['rubocop', 'engine_cart:generate'] do
puts 'running continuous integration'
Rake::Task['spec_with_app_load'].invoke
end
Dir.glob('lib/tasks/*.rake').each { |r| import r }
task default: :ci