Skip to content

Commit

Permalink
Use travis to run build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
begriffs committed Mar 19, 2013
1 parent 10a1228 commit ddba2bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
@@ -0,0 +1,7 @@
language: ruby
rvm:
- 1.9.3
- 1.8.7
env:
- AR_TEST_VERSION: 3.0.0
- AR_TEST_VERSION: 3.2.12
10 changes: 1 addition & 9 deletions Rakefile
Expand Up @@ -23,13 +23,5 @@ task :default => [:spec]

desc 'Run all tests'
task :spec => 'db:create' do
['3.0.0', '3.2.12'].each do |version|
ENV['AR_TEST_VERSION'] = version
system 'bundle'

confirmed_version = `bundle exec gem list activerecord | grep 'activerecord ('`
puts "\n*** Testing using #{confirmed_version}"
system 'bundle exec rspec'
exit 1 unless $?.success?
end
exec 'rspec'
end

0 comments on commit ddba2bf

Please sign in to comment.