forked from samvera/hyrax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
executable file
·29 lines (22 loc) · 846 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
#!/usr/bin/env rake
# frozen_string_literal: true
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
Bundler::GemHelper.install_tasks
import "#{Gem.loaded_specs['jasmine'].full_gem_path}/lib/jasmine/tasks/jasmine.rake"
# Set up the test application prior to running jasmine tasks.
task 'jasmine:require' => :setup_test_server
task :setup_test_server do
require 'engine_cart'
EngineCart.load_application!
end
Dir.glob('tasks/*.rake').each { |r| import r }
task default: :ci
# Load the test app's rake tasks so they can be run from the app namespace (e.g. app:db:migrate)
if File.exist?(File.expand_path(".internal_test_app/Rakefile", __dir__))
APP_RAKEFILE = File.expand_path(".internal_test_app/Rakefile", __dir__)
load 'rails/tasks/engine.rake'
end