Skip to content

Commit

Permalink
adds Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pithyless committed Feb 14, 2011
1 parent 75c14f1 commit ac15c1f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Rakefile
@@ -0,0 +1,34 @@
#!/usr/bin/env ruby

# FIXME: Bundler and RVM not playing well together
#
# require 'bundler'
# begin
# Bundler.setup(:default, :development)
# rescue Bundler::BundlerError => e
# $stderr.puts e.message
# $stderr.puts "Run `bundle install` to install missing gems"
# exit e.status_code
# end

require 'rake'

require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib' << 'test'
t.pattern = 'test/**/test_*.rb'
t.verbose = true
end

require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'test'
t.pattern = 'test/**/test_*.rb'
t.verbose = true
end

task :default => [:test, :fingers]

task :fingers do
ruby "main.rb"
end

0 comments on commit ac15c1f

Please sign in to comment.