forked from starpeak/gricer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (27 loc) · 871 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
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:cucumber)
task :spec #=> ['app:db:migrate:test']
desc "Run RSpec and Cucumber tests"
task :test => [:spec, :cucumber]
task :default => :test
namespace :doc do
begin
require 'yard'
YARD::Rake::YardocTask.new(:yard) do |t|
t.files = ['lib/**/*.rb', 'app/**/*.rb', '-', 'README.rdoc', 'MIT-LICENSE']
t.options = ['--title', 'API - Gricer - Web Analytics Tool for Rails 3.1/3.2', '--private', '--protected']
end
rescue
end
end
Bundler::GemHelper.install_tasks
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'