-
-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathRakefile
More file actions
executable file
·29 lines (21 loc) · 868 Bytes
/
Rakefile
File metadata and controls
executable file
·29 lines (21 loc) · 868 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
28
29
#!/usr/bin/env rake
# 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__)
Rails.application.load_tasks
if Rails.env.local?
require 'rubocop/rake_task'
RuboCop::RakeTask.new.tap do |task|
task.options = %w[--parallel]
end
desc 'Run Brakeman'
task brakeman: :environment do
sh('bundle exec brakeman')
end
# these two tasks cannot be run in parallel because there's contention over sprockets cache
task all_tests: %w[jasmine:ci rspec_with_retries]
multitask faster_default: %w[rubocop brakeman all_tests]
# need to clear because the default task is already defined as a Task not a MultiTask
task(:default).clear.enhance([:faster_default])
end