Sha256: 643a30aaef65223f6c9d07d84277e79a5e04a1a473c310c86dd075f2e6b05d69
Contents?: true
Size: 1022 Bytes
Versions: 13
Compression:
Stored size: 1022 Bytes
Contents
require "bundler/gem_tasks" require 'cane/rake_task' require 'tailor/rake_task' desc "Run cane to check quality metrics" Cane::RakeTask.new do |cane| cane.canefile = './.cane' end Tailor::RakeTask.new desc "Display LOC stats" task :stats do puts "\n## Production Code Stats" sh "countloc -r lib" end desc "Run all quality tasks" task :quality => [:cane, :tailor, :stats] task :default => [:quality] # begin # require 'kitchen/rake_tasks' # Kitchen::RakeTasks.new # rescue LoadError # puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI'] # end # Create the spec task. require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec, :tag) do |t, args| t.rspec_opts = [].tap do |a| a << '--color' a << "--format #{ENV['CI'] ? 'documentation' : 'Fuubar'}" a << '--backtrace' if ENV['VERBOSE'] || ENV['DEBUG'] a << "--seed #{ENV['SEED']}" if ENV['SEED'] a << "--tag #{args[:tag]}" if args[:tag] a << "--default-path test" a << '-I test/spec' end.join(' ') end
Version data entries
13 entries across 13 versions & 1 rubygems