Permalink
Browse files

Added multiple tests env for Travis CI (doctrine 2.0, 2.1 and 2.2)

  • Loading branch information...
1 parent 4a35361 commit a95846bdab906d5df8ac5dcb9703a5e568262206 @FabienPennequin committed Dec 22, 2011
Showing with 10 additions and 3 deletions.
  1. +5 −0 .travis.yml
  2. +5 −3 vendors.php
View
@@ -4,6 +4,11 @@ php:
- 5.3
- 5.4
+env:
+ - DOCTRINE_VERSION=2.0.x
+ - DOCTRINE_VERSION=2.1.x
+ - DOCTRINE_VERSION=master
+
before_script: php vendors.php
script: phpunit --configuration phpunit.dist.xml
View
@@ -4,10 +4,12 @@
$vendorDir = __DIR__.'/vendor';
+$version = isset($_SERVER['DOCTRINE_VERSION']) ? 'origin/'.$_SERVER['DOCTRINE_VERSION'] : 'origin/master';
+
$deps = array(
- array('doctrine/common', 'https://github.com/doctrine/common.git', 'origin/2.1.x'),
- array('doctrine/dbal', 'https://github.com/doctrine/dbal.git', 'origin/2.1.x'),
- array('doctrine/orm', 'https://github.com/doctrine/doctrine2.git', 'origin/2.1.x'),
+ array('doctrine/common', 'https://github.com/doctrine/common.git', $version),
+ array('doctrine/dbal', 'https://github.com/doctrine/dbal.git', $version),
+ array('doctrine/orm', 'https://github.com/doctrine/doctrine2.git', $version),
);
foreach ($deps as $dep) {

0 comments on commit a95846b

Please sign in to comment.