Run on travis-ci.org

This commit is contained in:
stanislaw 2012-07-08 17:18:35 +03:00 committed by Ben Mabey
parent f131ed3ae5
commit 84ac2da1b4
4 changed files with 27 additions and 7 deletions

10
.travis.yml Normal file
View file

@ -0,0 +1,10 @@
language: ruby
rvm:
- 1.8.7
- 1.9.3
script: "bundle exec rake travis"
gemfile:
- Gemfile
before_script:
- mysql -e 'create database database_cleaner_test;'
- psql -c 'create database database_cleaner_test;' -U postgres

View file

@ -35,6 +35,10 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
RSpec::Core::RakeTask.new(:travis) do |spec|
spec.pattern = FileList['spec/travis.rb']
end
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true

View file

@ -1,7 +0,0 @@
--colour
--format nested
--loadby
mtime
--reverse
--backtrace
--debugger

13
spec/travis.rb Normal file
View file

@ -0,0 +1,13 @@
require 'spec_helper'
generic_specs = Dir[
'spec/base_spec.rb',
'spec/configuration_spec.rb',
'spec/database_cleaner/generic/**/*_spec.rb'
]
active_record_specs = Dir[
'spec/database_cleaner/active_record/**/*_spec.rb'
]
(generic_specs + active_record_specs).each {|s| require s}