forked from sudara/authlogic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (24 loc) · 813 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
# frozen_string_literal: true
require "rubygems"
require "bundler"
Bundler.setup
require "rake/testtask"
Rake::TestTask.new(:test) do |test|
test.libs << "test"
test.pattern = "test/**/*_test.rb"
test.verbose = false
# Set interpreter warning level to 2 (verbose)
#
# Warnings are set to 0 on TravisCI because it has a maximum
# log length of 4MB and the following warning is printed thousands of times:
#
# > ../postgresql/database_statements.rb:24:
# > warning: rb_tainted_str_new is deprecated and will be removed in Ruby 3.2.
warning_level = ENV.fetch("TRAVIS", "false") == "true" ? 0 : 2
test.ruby_opts += [format("-W%d", warning_level)]
end
require "rubocop/rake_task"
RuboCop::RakeTask.new
task default: %i[rubocop test]
require "coveralls/rake/task"
Coveralls::RakeTask.new