forked from New-Bamboo/rack-raw-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
37 lines (31 loc) · 837 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
task :default => :test
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*_test.rb']
t.verbose = true
end
namespace :test do
desc "Run all tests on multiple ruby versions (requires rvm)"
task :portability do
%w[1.8.7 1.9.2 ree rbx jruby].each do |version|
system <<-BASH
bash -c 'source ~/.rvm/scripts/rvm;
echo "--------- version #{version} ----------\n";
rvm #{version};
bundle install 1> /dev/null;
rake test'
BASH
end
end
end
begin
require 'yard'
YARD::Rake::YardocTask.new(:yardoc)
rescue LoadError
task :yardoc do
abort "YARD is not available. In order to run yard, you must: sudo gem install yard"
end
end