Skip to content

Commit

Permalink
Fix Rubocop Rake/Desc
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Aug 30, 2023
1 parent d71194c commit 1e6d183
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions tasks/jenkins.rake
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
require 'English'

begin
require "ci/reporter/rake/test_unit"
namespace :jenkins do
task :unit => ["jenkins:setup:test_unit", 'rake:test']

namespace :setup do
task :pre_ci do
ENV["CI_REPORTS"] = 'jenkins/reports/unit/'
gem 'ci_reporter'
end
task :minitest => [:pre_ci, "ci:setup:minitest"]
task :test_unit => [:pre_ci, "ci:setup:testunit"]
end

task :rubocop do
system("bundle exec rubocop \
--require rubocop/formatter/checkstyle_formatter \
--format progress \
--format RuboCop::Formatter::CheckstyleFormatter \
--no-color --out rubocop.xml")
exit($CHILD_STATUS.exitstatus)
end
desc 'Sets up CI environment for testing and run tests'
task :unit => ['ci:setup:testunit', 'rake:test']
end
rescue LoadError
# ci/reporter/rake/rspec not present, skipping this definition
end

0 comments on commit 1e6d183

Please sign in to comment.