-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (28 loc) · 962 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
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
# TODO: put dummy constants in some kind of Rake config file
DUMMY_REPO_URL = 'https://github.com/benjineering/loco-app-extended.git'
DUMMY_REPO_BRANCH = 'master'
DUMMY_ROOT_DIR = File.join(__dir__, 'spec')
DUMMY_DIR = 'dummy'
DUMMY_BAK_DIR = 'dummy-bak'
DUMMY_PATH = File.join(DUMMY_ROOT_DIR, DUMMY_DIR)
DUMMY_BAK_PATH = File.join(DUMMY_ROOT_DIR, DUMMY_BAK_DIR)
load 'rails/tasks/statistics.rake'
Bundler::GemHelper.install_tasks
begin
require 'rake/clean'
CLEAN.include(DUMMY_PATH, DUMMY_BAK_PATH)
rescue LoadError
end
# I don't think we need this - these are tasks to be run from the rails app
#load 'lib/tasks/locomotive_subscription_tasks.rake'
Dir['lib/locomotive_subscriptions/tasks/**/*.rake'].each { |t| load t }
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end