-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (19 loc) · 891 Bytes
/
Rakefile
File metadata and controls
27 lines (19 loc) · 891 Bytes
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
# 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.
# ------------------------------------------------------------
# Rails
require File.expand_path('config/application', __dir__)
Rails.application.load_tasks
require 'solr_wrapper' unless Rails.env.production?
# ------------------------------------------------------------
# Setup
desc 'Set up DB'
task setup: %w[db:setup]
# ------------------------------------------------------------
# Check (setup + coverage)
desc 'Set up, check test coverage'
task check: %w[setup geoblacklight:index:seed spec]
# clear rspec/rails default :spec task
Rake::Task[:default].clear if Rake::Task.task_defined?(:default)
desc 'Set up, run tests, check code style, check test coverage, check for vulnerabilities'
task default: %i[check rubocop]