forked from brianmario/mysql2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
25 lines (22 loc) · 726 Bytes
/
Copy pathRakefile
File metadata and controls
25 lines (22 loc) · 726 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
# encoding: UTF-8
require 'rake'
# Load custom tasks (careful attention to define tasks before prerequisites)
load 'tasks/vendor_mysql.rake'
load 'tasks/rspec.rake'
load 'tasks/compile.rake'
load 'tasks/generate.rake'
load 'tasks/benchmarks.rake'
# TODO: remove engine check when rubinius stops crashing on RuboCop
# TODO: remove defined?(Encoding) when we end support for < 1.9.3
has_rubocop = if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && defined?(Encoding)
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
task :default => [:spec, :rubocop]
rescue LoadError # rubocop:disable Lint/HandleExceptions
end
end
unless has_rubocop
warn 'RuboCop is not available'
task :default => :spec
end