forked from eadz/typus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
54 lines (41 loc) · 1.03 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rubygems'
require 'rake/testtask'
require 'rake/rdoctask'
task :default => :test
desc 'Test the typus plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate plugin documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Typus'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc "Deploy test/fixtures/rails_app"
task :deploy do
system "cd test/fixtures/rails_app && cap deploy"
end
RUBIES = %w[1.8.7 ree 1.9.2 jruby].join(",")
namespace :setup do
desc "Setup test environment"
task :test_environment do
system "rvm install #{RUBIES}"
end
desc "Setup CI Joe"
task :cijoe do
system "git config --replace-all cijoe.runner 'rake test:rubies'"
end
end
namespace :test do
task :rubies do
system "rvm #{RUBIES} rake"
end
end