update rakefile for travis
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env rake
|
#!/usr/bin/env rake
|
||||||
begin
|
begin
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
|
Bundler::GemHelper.install_tasks
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
||||||
end
|
end
|
||||||
@@ -11,6 +12,8 @@ rescue LoadError
|
|||||||
require 'rake/rdoctask'
|
require 'rake/rdoctask'
|
||||||
RDoc::Task = Rake::RDocTask
|
RDoc::Task = Rake::RDocTask
|
||||||
end
|
end
|
||||||
|
require 'rspec/core'
|
||||||
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
RDoc::Task.new(:rdoc) do |rdoc|
|
RDoc::Task.new(:rdoc) do |rdoc|
|
||||||
rdoc.rdoc_dir = 'rdoc'
|
rdoc.rdoc_dir = 'rdoc'
|
||||||
@@ -19,8 +22,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|||||||
rdoc.rdoc_files.include('README.rdoc')
|
rdoc.rdoc_files.include('README.rdoc')
|
||||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
||||||
end
|
end
|
||||||
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
||||||
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
||||||
|
end
|
||||||
|
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
||||||
load 'rails/tasks/engine.rake'
|
load 'rails/tasks/engine.rake'
|
||||||
|
|
||||||
|
|
||||||
@@ -37,4 +42,5 @@ Rake::TestTask.new(:test) do |t|
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
task :default => :test
|
|
||||||
|
task :default => :spec
|
||||||
|
|||||||
Reference in New Issue
Block a user