]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't break app on travis
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 30 Nov 2015 09:52:52 +0000 (10:52 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 30 Nov 2015 09:55:13 +0000 (10:55 +0100)
tests/lib/testcase.php

index f6a4febefc7bca6b4910c2d308751e6da38bf952..5d88fa08a6dce84839c81b6d080bb6eb0e9d3bc4 100644 (file)
@@ -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;