forked from smartchicago/kimball
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
29 lines (21 loc) · 954 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
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('config/application', __dir__)
Patterns::Application.load_tasks
if !Rails.env.production? && !Rails.env.staging?
require 'coveralls/rake/task'
require 'gem-licenses'
Gem::GemLicenses.install_tasks
Coveralls::RakeTask.new
task test_with_coveralls: [:spec, :features, 'coveralls:push']
task default: [:spec, 'coveralls:push']
end
desc 'Send reminders'
task send_reminders: :environment do # :environment will load our Rails app, so we can query the database with ActiveRecord
User.send_all_reminders
end
desc 'update participation levels'
task update_participation_levels: :environment do # :environment will load our Rails app, so we can query the database with ActiveRecord
Person.update_all_participation_levels
end