forked from zerocracy/pages-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (25 loc) · 702 Bytes
/
Rakefile
File metadata and controls
33 lines (25 loc) · 702 Bytes
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
# frozen_string_literal: true
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
# SPDX-License-Identifier: MIT
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'rubygems'
ENV['RACK_RUN'] = 'true'
task default: %i[test judges rubocop]
CLEAN.include('target')
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.warning = true
test.verbose = false
end
desc 'Run all judges'
task :judges do
live = ARGV.include?('--live') ? '' : '--disable live'
sh "judges --verbose test #{live} --no-log judges"
end
RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
end