-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrakefile.rb
59 lines (45 loc) · 1.47 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
50
51
52
53
54
55
56
57
58
59
begin
require 'bundler/setup'
require 'fuburake'
rescue LoadError
puts 'Bundler and all the gems need to be installed prior to running this rake script. Installing...'
system("gem install bundler --source http://rubygems.org")
sh 'bundle install'
system("bundle exec rake", *ARGV)
exit 0
end
@solution = FubuRake::Solution.new do |sln|
sln.compile = {
:solutionfile => 'src/Serenity.sln'
}
sln.assembly_info = {
:product_name => "Serenity",
:copyright => "Copyright 2011-#{Time.now.year} Jeremy D. Miller, Josh Arnold, et al. All rights reserved."
}
sln.ripple_enabled = true
sln.fubudocs_enabled = true
sln.assembly_bottle 'Serenity'
sln.defaults = %w{run_jasmine st:chrome:run st:phantom:run}
end
FubuRake::Storyteller.new({
:path => 'src/StorytellerProject',
:compilemode => @solution.compilemode
})
FubuRake::Storyteller.new({
:path => 'src/StorytellerProject',
:prefix => 'st:phantom',
:profile => 'phantom',
:compilemode => @solution.compilemode
})
FubuRake::Storyteller.new({
:path => 'src/StorytellerProject',
:prefix => 'st:chrome',
:profile => 'chrome',
:compilemode => @solution.compilemode
})
desc "Try out JasmineRunner"
task :run_jasmine => [:compile] do
sh "src/SerenityRunner/bin/#{@solution.compilemode}/SerenityRunner.exe jasmine run src/JasmineTestApplication -b Firefox"
end
desc "Target used for the CI server (Mono)"
task :mono_ci => [:compile]