Explorar el Código

Update travis config to use composer to load test dependencies

Olivier Paradis hace 13 años
padre
commit
2720a7dfbf
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  1. 5 1
      .travis.yml
  2. 8 1
      Tests/tests/autoload.php.dist

+ 5 - 1
.travis.yml

@@ -1,4 +1,5 @@
 language: php
+
 php:
   - 5.3
   # - 5.4
@@ -7,7 +8,10 @@ env:
   - SYMFONY_VERSION=v2.0.11
   - SYMFONY_VERSION=origin/2.0
 
-before_script: php Tests/tests/vendors.php
+before_script:
+  - wget -nc http://getcomposer.org/composer.phar
+  - php composer.phar install
+
 script: phpunit
 
 notifications:

+ 8 - 1
Tests/tests/autoload.php.dist

@@ -11,5 +11,12 @@ if (is_file($autoload)) {
 } elseif (is_file($composerAutoload)) {
     include $composerAutoload;
 } else {
-    throw new \Exception('unable to autoload vendors for tests');
+    die('Unable to find autoload.php file, please use composer to load dependencies:
+
+wget http://getcomposer.org/composer.phar
+php composer.phar install
+
+Visit http://getcomposer.org/ for more information.
+
+');
 }