forked from NUBIC/castanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (29 loc) · 873 Bytes
/
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
require 'ci/reporter/rake/rspec'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'rubygems/package_task'
require 'yard'
load File.expand_path('../lib/tasks/fsm.rake', __FILE__)
load File.expand_path('../lib/tasks/servers.rake', __FILE__)
gemspec = eval(File.read('castanet.gemspec'), binding, 'castanet.gemspec')
Gem::PackageTask.new(gemspec).define
RSpec::Core::RakeTask.new
namespace :cucumber do
Cucumber::Rake::Task.new(:ok) do |t|
t.profile = :default
end
Cucumber::Rake::Task.new(:wip) do |t|
t.profile = :wip
end
desc 'Run all features'
task :all => ['cucumber:ok', 'cucumber:wip']
end
namespace :yard do
desc 'Run the YARD server'
task :auto do
sh "bundle exec yard server --reload"
end
desc 'Generate YARD documentation'
YARD::Rake::YardocTask.new('once')
end
task :default => [:spec, 'cucumber:ok']