Permalink
Browse files

skipping mongo tests due to bugs in travis.ci

  • Loading branch information...
1 parent a68caf8 commit 5acfde7a68b4b76d840f247040c20056fe7b03b2 @bshaffer committed Apr 4, 2013
Showing with 5 additions and 1 deletion.
  1. +3 −0 .travis.yml
  2. +2 −1 test/lib/OAuth2/Storage/Bootstrap.php
View
@@ -5,6 +5,9 @@ php:
- 5.3
- 5.4
+env:
+ - SKIP_MONGO_TESTS=1
+
services: mongodb
before_script:
@@ -49,7 +49,8 @@ public function getMysqlPdo()
public function getMongo()
{
if (!$this->mongo) {
- if (class_exists('MongoClient')) {
+ $skipMongo = isset($_SERVER['SKIP_MONGO_TESTS']) && $_SERVER['SKIP_MONGO_TESTS'];
+ if (!$skipMongo && class_exists('MongoClient')) {
$m = new MongoClient();
$db = $m->oauth2_server_php;
$this->removeMongoDb($db);

0 comments on commit 5acfde7

Please sign in to comment.