-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
44 lines (32 loc) · 1.08 KB
/
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
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
require 'engine_cart/rake_task'
# Bundler.require(*Rails.groups)
# Rails.application.load_tasks
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
Bundler::GemHelper.install_tasks
# task :ci => ['engine_cart:generate'] do
# run the tests
# end
# RSpec::Core::RakeTask.new(:spec)
# task :default => :spec
# RSpec::Core::RakeTask.new
# Set up the test application prior to running jasmine tasks.
task :setup_test_server do
require 'engine_cart'
EngineCart.load_application!
end
Dir.glob('tasks/*.rake').each { |r| import r }
Dir.glob('lib/tasks/*.rake').each { |r| import r }
# Adding the copy_authorities here so it runs the same in CI
desc "Generate the engine_cart, copy authorities, and run tests"
task prepare_and_run_tests: ['engine_cart:generate', 'engine_cart:copy_authorities'] do
puts "Running CI tests"
end
task default: :ci