Skip to content

Commit

Permalink
Should not fail if Rubocop or Rspec is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Eugene committed Apr 5, 2024
1 parent eded652 commit 64815de
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# frozen_string_literal: true

require_relative 'vk_informer_bot'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new
RuboCop::RakeTask.new
begin
require 'rspec/core/rake_task'
rescue LoadError
puts 'No rspec found'
else
RSpec::Core::RakeTask.new
end

begin
require 'rubocop/rake_task'
rescue LoadError
puts 'No rubocop found'
else
RuboCop::RakeTask.new
end

import 'lib/rake/db.rake'

Expand Down

0 comments on commit 64815de

Please sign in to comment.