diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-30 10:52:52 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-30 10:55:13 +0100 |
commit | dddfa6de78459e772c24e60f7404c9a188787540 (patch) | |
tree | 5acefced587385f0d1f6d189c9338cd14c928616 /tests | |
parent | 318e5e2864fdd209b77bf531ec3b6a997c9802d0 (diff) | |
download | nextcloud-server-dddfa6de78459e772c24e60f7404c9a188787540.tar.gz nextcloud-server-dddfa6de78459e772c24e60f7404c9a188787540.zip |
Don't break app on travis
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/testcase.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php index f6a4febefc7..5d88fa08a6d 100644 --- a/tests/lib/testcase.php +++ b/tests/lib/testcase.php @@ -338,6 +338,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase { } private function IsDatabaseAccessAllowed() { + // on travis-ci.org we allow database access in any case - otherwise + // this will break all apps right away + if (true == getenv('TRAVIS')) { + return true; + } $annotations = $this->getAnnotations(); if (isset($annotations['class']['group']) && in_array('DB', $annotations['class']['group'])) { return true; |