Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (33 sloc) 1.043 kb
6140278f » mynyml
2010-02-07 Add Rakefile
1 def gem_opt
2 defined?(Gem) ? "-rubygems" : ""
3 end
4
5 # --------------------------------------------------
6 # Tests
7 # --------------------------------------------------
8 task(:default => "test:all")
9
10 namespace(:test) do
11
12 desc "Run all tests"
13 task(:all) do
14 exit system("ruby #{gem_opt} -I.:lib:test -e'%w( #{Dir['test/**/*_test.rb'].join(' ')} ).each {|p| require p }'")
15 end
16
17 desc "Run all tests on multiple ruby versions (requires rvm)"
18 task(:portability) do
19 versions = %w( 1.8.6 1.8.7 1.9 1.9.2 )
20 versions.each do |version|
21 system <<-BASH
22 bash -c 'source ~/.rvm/scripts/rvm;
23 rvm use #{version};
24 echo "--------- #{version} ----------";
25 rake -s test:all'
26 BASH
27 end
28 end
29 end
30
31 # --------------------------------------------------
32 # Docs
33 # --------------------------------------------------
34 desc "Generate YARD Documentation"
35 task :yardoc do
36 require 'yard'
b21ae126 » mynyml
2010-02-08 Hide private methods in yardocs
37 YARD::CLI::Yardoc.run *%w( --no-private -o doc/yard --readme README.md - LICENSE )
6140278f » mynyml
2010-02-07 Add Rakefile
38 end
39
Something went wrong with that request. Please try again.