summaryrefslogtreecommitdiff
path: root/Rakefile
blob: b965610fd9a79858fc86748f51b915b54d12a995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$:.unshift File.join(File.dirname(__FILE__))

# Add the lib directory to the search path if it isn't included already
lib = File.expand_path('../lib', __FILE__)
$:.unshift lib unless $:.include?(lib)

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'rake/clean'
require 'yard'
YARD::Rake::YardocTask.new

Dir.glob( 'tasks/*.rake').each do |fn|
  begin 
    load fn;
  rescue LoadError
    puts "#{fn.split('/')[1]} tasks unavailable: #{$!}"
  end
end

task :default  => :spec
task :test => :spec

desc 'Run all unit and spec tests'