diff --git a/.drone.yml b/.drone.yml index 07ad955acfabb214c5e7180c43531d39b6b91139..2b17ba42f77d739d9093f6650466eef2aacfa98d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,38 +8,41 @@ build: commands: - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - git submodule update --init - - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass='' - NOCOVERAGE=true ./autotest.sh sqlite sqlite-php5.5: image: nextcloudci/php5.5:1.0.7 commands: - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - git submodule update --init - - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass='' - NOCOVERAGE=true ./autotest.sh sqlite - sqlite: + sqlite-php5.6: image: nextcloudci/php5.6:1.0.6 commands: - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - git submodule update --init - - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass='' - - ./autotest.sh sqlite - mysql: + - NOCOVERAGE=true ./autotest.sh sqlite + sqlite-php7.0: + image: nextcloudci/php7.0:1.0.9 + commands: + - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues + - git submodule update --init + - NOCOVERAGE=true ./autotest.sh sqlite + mysql-php5.6: image: nextcloudci/php5.6:1.0.6 commands: - sleep 15 # gives the database enough time to initialize - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - git submodule update --init - - ./autotest.sh mysql - postgres: + - NOCOVERAGE=true ./autotest.sh mysql + postgres-php5.6: image: nextcloudci/php5.6:1.0.6 commands: - sleep 10 # gives the database enough time to initialize - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - git submodule update --init - - ./autotest.sh pgsql + - NOCOVERAGE=true ./autotest.sh pgsql integration: - image: nextcloudci/php5.6:1.0.6 + image: nextcloudci/php7.0:1.0.9 commands: - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - git submodule update --init diff --git a/tests/lib/PreviewTest.php b/tests/lib/PreviewTest.php index 6ca88253468f018a9e3de3c96fea9a270f7493f5..cd22880181516f79879f6b2fed1b8b6f947525b6 100644 --- a/tests/lib/PreviewTest.php +++ b/tests/lib/PreviewTest.php @@ -783,7 +783,7 @@ class PreviewTest extends TestCase { $filename = $this->samples[$sampleId]['sampleFileName']; $splitFileName = pathinfo($filename); $extension = $splitFileName['extension']; - $correction = ($extension === 'eps') ? 1 : 0; + $correction = ($extension === 'eps' && PHP_MAJOR_VERSION < 7) ? 1 : 0; $maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight']; $maxPreviewHeight = $maxPreviewHeight - $correction; diff --git a/tests/lib/Traits/MountProviderTrait.php b/tests/lib/Traits/MountProviderTrait.php index bccb5b693ee962d9e784d85842b8e1874b9a0889..0437157e84ff71390f26570c1c2d20c1e6ca4824 100644 --- a/tests/lib/Traits/MountProviderTrait.php +++ b/tests/lib/Traits/MountProviderTrait.php @@ -41,7 +41,7 @@ trait MountProviderTrait { protected function setUpMountProviderTrait() { $this->storageFactory = new StorageFactory(); - $this->mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider'); + $this->mountProvider = $this->getMockBuilder('\OCP\Files\Config\IMountProvider')->getMock(); $this->mountProvider->expects($this->any()) ->method('getMountsForUser') ->will($this->returnCallback(function (IUser $user) {