forked from department-of-veterans-affairs/vets-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (22 loc) · 754 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
# 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 'rake'
require 'ddtrace'
require_relative 'config/application'
Datadog.configure do |c|
c.use :rake
end
# Load rake support files
Dir[Rails.root.join('lib', 'tasks', 'support', '**', '*.rb')].sort.each { |f| require f }
Rails.application.load_tasks
unless Rails.env.production?
require 'rspec/core/rake_task'
require 'pact/tasks'
task(spec: :environment).clear
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = Dir.glob(['spec/**/*_spec.rb', 'modules/*/spec/**/*_spec.rb'])
t.verbose = false
end
task default: 'pact:verify'
end