Skip to content

Commit

Permalink
#194 simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 28, 2025
1 parent 9568a7a commit aff2edd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,30 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'rubygems'

ENV['RACK_RUN'] = 'true'

task default: %i[test judges rubocop]

require 'rake/clean'
CLEAN.include('target')

require 'rake/testtask'
desc 'Run all unit tests'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.warning = true
test.verbose = false
end

desc 'Test all judges'
task :judges do
live = ARGV.include?('--live') ? '' : '--disable live'
sh "judges --verbose test #{live} --no-log judges"
end

require 'rubocop/rake_task'
desc 'Run RuboCop on all directories'
RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
end

0 comments on commit aff2edd

Please sign in to comment.