Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 320 Bytes
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
def ci?
ENV['CI'] == 'true'
end
RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = ci?
end
default_tasks = [:spec]
unless ci?
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
default_tasks << :rubocop
end
task default: default_tasks