mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Run on travis-ci.org
This commit is contained in:
parent
f131ed3ae5
commit
84ac2da1b4
4 changed files with 27 additions and 7 deletions
10
.travis.yml
Normal file
10
.travis.yml
Normal 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
|
4
Rakefile
4
Rakefile
|
@ -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
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
--colour
|
||||
--format nested
|
||||
--loadby
|
||||
mtime
|
||||
--reverse
|
||||
--backtrace
|
||||
--debugger
|
13
spec/travis.rb
Normal file
13
spec/travis.rb
Normal 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}
|
Loading…
Reference in a new issue