Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.508 kB
require 'rubygems'
require 'bundler/setup'
require 'appraisal'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
namespace :ci do
desc 'Run the tests on the CI server'
task :run do
exit_status = 1
begin
`bundle exec rspec --no-color spec/`.tap do |result|
puts result
exit_status = result =~ /\b0\s+failures?\b/ ? 0 : 1
end
ensure
exit exit_status
end
end
end
task :default => :spec
Jump to Line
Something went wrong with that request. Please try again.