Skip to content

Commit

Permalink
Disabling xdebug for Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andres.gutierrez committed Mar 4, 2012
1 parent 89f9b45 commit 142d28d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 99 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ before_script:
- sh -c "phpize && ./configure --enable-phalcon && make && sudo make install"
- echo "extension=phalcon.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- cd ..
- php unit-tests/disable-xdebug.php

script: phpunit -c unit-tests/phpunit.xml

Expand Down
30 changes: 30 additions & 0 deletions unit-tests/disable-xdebug.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file docs/LICENSE.txt. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to license@phalconphp.com so we can send you a copy immediately. |
+------------------------------------------------------------------------+
| Authors: Andres Gutierrez <andres@phalconphp.com> |
| Eduar Carvajal <eduar@phalconphp.com> |
+------------------------------------------------------------------------+
*/

$file = '/home/vagrant/.phpenv/versions/'.PHP_VERSION.'/etc/php.ini';
if(file_exists($file)){
$content = '';
foreach(file($file) as $line){
if(!preg_match('/zend_extension=/', $line)){
$content.=$line;
}
}
file_put_contents($file, $content);
}
99 changes: 0 additions & 99 deletions unit-tests/dispatcher-events.php

This file was deleted.

0 comments on commit 142d28d

Please sign in to comment.