Skip to content

Commit

Permalink
Use PHP_EXT in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms committed Dec 17, 2013
1 parent 7c36c0c commit c3aca88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -7,13 +7,13 @@ services:

env:
# Test compatiblity with opcode caches.
- OPCODE_CACHE=apc
- OPCODE_CACHE=xcache
- PHP_EXT=apc
- PHP_EXT=xcache
# Test each database in isolation.
- DB=mysql
- DB=pgsql
- DB=sqlite
- DB=mongodb
- DB=mongodb PHP_EXT=mongo
- DB=couchdb

php:
Expand Down
12 changes: 2 additions & 10 deletions tests/ci/depends.php
Expand Up @@ -7,16 +7,8 @@
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/

$opcodeCache = getenv('OPCODE_CACHE');
$db = getenv('DB');

if ($opcodeCache == 'apc') {
PhpExtensions::install('apc');
} elseif ($opcodeCache == 'xcache') {
PhpExtensions::install('xcache');
}
if ($db == 'mongodb') {
PhpExtensions::install('mongo');
foreach (explode(' ', getenv('PHP_EXT')) ?: array() as $extension) {
PhpExtensions::install($extension);
}

/**
Expand Down

0 comments on commit c3aca88

Please sign in to comment.