-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (32 loc) · 927 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
30
31
32
33
34
35
36
37
# frozen_string_literal: true
require 'rake/clean'
task default: %i[clean rubocop test ci]
desc 'Run RuboCop'
require 'rubocop/rake_task'
::RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
end
desc 'Run unit tests'
require 'rake/testtask'
::Rake::TestTask.new(:test) do |task|
task.libs << 'lib' << 'test'
task.pattern = 'test/**/test_*.rb'
task.verbose = true
end
desc 'Run all custom checks for CI'
require_relative './ci/links_checker'
require_relative './ci/readme_duplicates_checker'
require_relative './ci/readme_paths_checker'
require_relative './ci/tests_checker'
require_relative './ci/version_checker'
require_relative './ci/duplicate_links_checker'
task :ci do
[
::CI::LinksChecker.new,
::CI::ReadmeDuplicatesChecker.new,
::CI::ReadmePathsChecker.new,
::CI::TestsChecker.new,
::CI::VersionChecker.new,
::CI::DuplicateLinksChecker.new
].each(&:process)
end