-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrakefile.rb
49 lines (40 loc) · 1.4 KB
/
rakefile.rb
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
require 'bundler/setup'
require 'fuburake'
@solution = FubuRake::Solution.new do |sln|
sln.compile = {
:solutionfile => 'src/jquery.continuations.sln'
}
sln.assembly_info = {
:product_name => "jQuery.continuations",
:copyright => 'Copyright 2008-2013 Jeremy D. Miller, Josh Arnold, et al. All rights reserved.'
}
sln.ripple_enabled = true
sln.fubudocs_enabled = true
sln.ci_steps = ["run_phantom"]
end
desc "Opens the Serenity Jasmine Runner in interactive mode"
task :open do
prep()
serenity "jasmine interactive src/serenity.txt -b Firefox"
end
desc "Runs the Jasmine tests"
task :run => [:compile] do
prep()
serenity "jasmine run --timeout 60 src/serenity.txt -b Firefox"
end
desc "Runs the Jasmine tests and outputs the results for TC"
task :run_phantom => [:compile] do
prep()
serenity "jasmine run --verbose --timeout 60 src/serenity.txt -b Phantom"
artifacts = File.expand_path('artifacts', File.dirname(__FILE__))
copyOutputFiles "src/jquery.continuations/content/scripts", "jquery.continuations.*", artifacts
end
def prep()
FileUtils.rm_rf 'src/jquery.continuations/bin'
waitfor { !exists?('src/jquery.continuations/bin') }
Dir.mkdir 'src/jquery.continuations/bin'
end
def self.serenity(args)
serenity = Platform.runtime(Nuget.tool("Serenity", "SerenityRunner.exe"), "v4.0.30319")
sh "#{serenity} #{args}"
end