-
Notifications
You must be signed in to change notification settings - Fork 2
/
rakefile.rb
40 lines (32 loc) · 1.1 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
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
FubuRake::Solution.new do |sln|
sln.compile = {
:solutionfile => 'src/FubuMVC.Ajax.sln'
}
sln.assembly_info = {
:product_name => "FubuMVC.Ajax",
:copyright => 'Copyright 2012-2013 Josh Arnold, et al. All rights reserved.'
}
sln.ripple_enabled = true
sln.fubudocs_enabled = true
sln.assembly_bottle 'FubuMVC.Ajax'
sln.ci_steps = ['run_phantom']
end
desc "Runs the ST suite using Phantom"
task :run_phantom => [:compile] do
serenity "storyteller src/FubuMVC.Ajax.StoryTeller/Ajax.xml results/StoryTeller.html -b Phantom"
artifacts = File.expand_path('artifacts', File.dirname(__FILE__))
end
def self.serenity(args)
serenity = Platform.runtime(Nuget.tool("Serenity", "SerenityRunner.exe"), "v4.0.30319")
sh "#{serenity} #{args}"
end