-
Notifications
You must be signed in to change notification settings - Fork 47
/
Rakefile
29 lines (23 loc) · 698 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', __FILE__)
# Do not use fedora or solr wrappers in docker
# no reason to run those services locally twice
if ENV['IN_DOCKER']
task default: [:rubocop, :spec]
else
task default: [:rubocop, :ci]
end
Rails.application.load_tasks
begin
require 'solr_wrapper/rake_task'
# rubocop:disable Lint/SuppressedException
rescue LoadError
# rubocop:enable Lint/SuppressedException
end
task :ci do
with_server 'test' do
Rake::Task['spec'].invoke
end
end