forked from slagyr/limelight
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
59 lines (47 loc) · 1.39 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
55
56
57
58
59
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, :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]
task :continuous => [:tests_cont]#do
# require 'tmpdir'
# tmpdir = File.join(Dir.tmpdir, "limelight_darwin_#{rand}")
# system "mkdir #{tmpdir}"
# system "mv src/limelight/os/darwin/* #{tmpdir}"
# begin
# Rake::Task[:tests].invoke
# ensure
# system "mv #{tmpdir}/* src/limelight/os/darwin"
# end
#end
task :junit_cont do
output = `ant unit_test.cont`
raise output if $?.exitstatus != 0
end
task :spec_cont 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 :tests_cont => [:junit_cont, :spec_cont]
task :default => :continuous