-
Notifications
You must be signed in to change notification settings - Fork 35
/
Rakefile
50 lines (40 loc) · 1.14 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
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = %w[--color]
t.pattern = 'spec/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:spec2) do |t|
t.rspec_opts = %w[--color]
t.pattern = 'spec/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:php) do |spec|
t.libs << 'lib' << 'spec'
t.pattern = 'spec/**/*php*_spec.rb'
end
desc "Run specs and generate coverage data"
task :coverage => [:coverage_env, :spec]
task :coverage_env do
ENV['COVERAGE'] = '1'
end
task :test => [:cucumber, :spec]
task :default => [:test]
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'engineyard-serverside'
require 'engineyard-serverside/version'
begin
require 'rdoc/task'
rdoc_task = RDoc::Task
rescue LoadError => ex
require 'rake/rdoctask' # older than RDoc 2.4.2
rdoc_task = Rake::RDocTask
end
rdoc_task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "engineyard-serverside #{EY::Serverside::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.exclude('lib/vendor/**/*.rb')
end