slagyr / limelight

user interface framework for ruby

This URL has Read+Write access

limelight / Rakefile
100644 32 lines (24 sloc) 0.768 kb
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
PROJECT_ROOT = File.expand_path(File.dirname(__FILE__))
TASK_DIR = File.expand_path(File.dirname(__FILE__) + "/etc/tasks")
Gem.clear_paths
ENV["GEM_PATH"] = File.expand_path(File.dirname(__FILE__) + "/etc/gems")
 
require File.expand_path(File.dirname(__FILE__) + "/lib/limelight/version")
 
Dir.glob(File.join(TASK_DIR, "*.rake")).each do |rakefile|
  load rakefile
end
 
task :jar do
  system "ant jar"
end
 
task :init => [:jar, :init_jruby, :jruby_gems, :dev_gems] do
end
 
task :spec do
  gem 'rspec'
  require 'spec/rake/spectask'
  Spec::Rake::SpecTask.new(:lib_specs){|t| t.spec_files = FileList['spec/**/*.rb']}
  Rake::Task[:lib_specs].invoke
end
 
task :junit do
  output = `ant unit_test`
  raise output if $?.exitstatus != 0
end
 
task :tests => [:junit, :spec]