Permalink
Browse files

Redesign the Travis build so each variation (Ruby version, Rails vers…

…ion, DB backend) is tested in isolation rather than producing a combinatorial explosion of build jobs.
  • Loading branch information...
1 parent 863a62a commit acd5573acabf6ff505b458d3b2e020b3c70d0d25 @jcoglan jcoglan committed Mar 25, 2013
Showing with 12 additions and 34 deletions.
  1. +12 −34 .travis.yml
View
46 .travis.yml
@@ -1,42 +1,20 @@
language: ruby
-rvm:
- - 1.8.7
- - 1.9.2
- - 1.9.3
- - 2.0.0
+matrix:
+ include:
+ - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql }
-gemfile:
- - gemfiles/activerecord_2_2.gemfile
- - gemfiles/activerecord_2_3.gemfile
- - gemfiles/activerecord_3_0.gemfile
- - gemfiles/activerecord_3_1.gemfile
- - gemfiles/activerecord_3_2.gemfile
+ - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=postgres }
-env:
- - DB=mysql
- - DB=postgres
+ - { rvm: 1.8.7, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql }
+ - { rvm: 1.9.2, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql }
+ - { rvm: 2.0.0, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql }
-matrix:
- exclude:
- - rvm: 1.9.2
- gemfile: gemfiles/activerecord_2_2.gemfile
- env: DB=mysql
- - rvm: 1.9.3
- gemfile: gemfiles/activerecord_2_2.gemfile
- env: DB=mysql
- - rvm: 2.0.0
- gemfile: gemfiles/activerecord_2_2.gemfile
- env: DB=mysql
- - rvm: 1.9.2
- gemfile: gemfiles/activerecord_2_2.gemfile
- env: DB=postgres
- - rvm: 1.9.3
- gemfile: gemfiles/activerecord_2_2.gemfile
- env: DB=postgres
- - rvm: 2.0.0
- gemfile: gemfiles/activerecord_2_2.gemfile
- env: DB=postgres
+ - { rvm: 1.8.7, gemfile: gemfiles/activerecord_2_2.gemfile, env: DB=mysql }
+ - { rvm: 1.9.3, gemfile: gemfiles/activerecord_2_3.gemfile, env: DB=mysql }
+ - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_0.gemfile, env: DB=mysql }
+ - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_1.gemfile, env: DB=mysql }
+ - { rvm: 1.9.3, gemfile: gemfiles/activerecord_3_2.gemfile, env: DB=mysql }
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database if not exists oauth2_test;'; fi"

0 comments on commit acd5573

Please sign in to comment.